public async Task <IActionResult> Create([Bind("ShipperID,CompanyName")] Shipper shipper) { if (ModelState.IsValid) { await _shipperService.Create(shipper); return(RedirectToAction(nameof(Index))); } return(View(shipper)); }
public IActionResult Post([FromBody] ShipperDto dto) { return(Ok(new { id = ShipperService.Create(dto) })); }
public async Task <Shipper> Create(Shipper shipper) { var shipperCreate = await _shipperService.Create(shipper); return(shipperCreate); }
public ShipperEntity Create([FromBody] ShipperEntity customerEntity) { return(shipperService.Create(customerEntity)); }