示例#1
0
 public CreateNewJobServiceMaterialLinkCommand(NewJobServiceMaterialLinkDto model)
 {
     Active        = model.Active;
     Name          = model.Name;
     ServiceId     = model.ServiceId;
     MaterialLists = model.MaterialLists;
 }
示例#2
0
        public IActionResult CreateNewJobServiceMaterialLink([FromBody] NewJobServiceMaterialLinkDto model)
        {
            var result = _mediator.Send(new CreateNewJobServiceMaterialLinkCommand(model)).Result;

            return(Created(result.Id.ToString(), result));
        }