public int?Create(CreateDeliverymanViewModel deliveryman) { var objDeliveryman = new Deliveryman(deliveryman.Name); _deliverymanRepository.Create(objDeliveryman); if (Commit()) { return(objDeliveryman.IdDeliveryman); } return(null); }
public Task <ObjectResult> Create(CreateDeliverymanViewModel createDeliverymanViewModel) { return(CreateResponse(_deliverymanApplication.Create(createDeliverymanViewModel))); }