FBAOtherFeeController.cs 920 B

1234567891011121314151617181920212223242526272829303132
  1. using Microsoft.AspNetCore.Mvc;
  2. using System.Threading.Tasks;
  3. using XYY.Core.Standard.Mvc;
  4. using XYY.Model.Standard.Order.FBA;
  5. using XYY.Service.Standard.Order.FBA;
  6. namespace XYY.Api.Order.Controllers.FBA
  7. {
  8. [Route("api/[controller]/[action]")]
  9. [ApiController]
  10. public class FBAOtherFeeController : ApiControllerBase
  11. {
  12. IFBAOtherFeeService fBAOtherFeeService;
  13. public FBAOtherFeeController(IFBAOtherFeeService fBAOtherFeeService)
  14. {
  15. this.fBAOtherFeeService = fBAOtherFeeService;
  16. }
  17. [HttpGet]
  18. public async Task<IActionResult> GetAll()
  19. {
  20. var data = await fBAOtherFeeService.GetAll();
  21. return Ok(data);
  22. }
  23. [HttpPost]
  24. public async Task<IActionResult> SaveOrAdd(FBA_OtherFee otherFee)
  25. {
  26. await fBAOtherFeeService.SaveOrAdd(otherFee);
  27. return Ok();
  28. }
  29. }
  30. }