public async Task <ActionResult> RegisterCategory([FromBody] Core.Entities.ServiceCategory entity)
        {
            var res = await mediator.Send(new RegisterCategory(entity));

            return(Ok(
                       res
                       ));
        }
예제 #2
0
 public RegisterCategory(Core.Entities.ServiceCategory entity)
 {
     ServiceCategory = entity;
 }