public CreateNewJobServiceMaterialLinkCommand(NewJobServiceMaterialLinkDto model) { Active = model.Active; Name = model.Name; ServiceId = model.ServiceId; MaterialLists = model.MaterialLists; }
public IActionResult CreateNewJobServiceMaterialLink([FromBody] NewJobServiceMaterialLinkDto model) { var result = _mediator.Send(new CreateNewJobServiceMaterialLinkCommand(model)).Result; return(Created(result.Id.ToString(), result)); }