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