Exemplo n.º 1
0
 public Task <Resp <long> > RoleAdd([FromBody] AddRoleReq req)
 {
     return(ModelState.IsValid
         ? _service.RoleAdd(req.ConvertToMo())
         : Task.FromResult(GetInvalidResp <long>()));
 }