Exemplo n.º 1
0
 Validation <Error, UpdateRoleCommand> ValidateUpdateMsg(UpdateRoleCommand msg)
 => from x in ValidateNonNull(msg)
 from y in (
Exemplo n.º 2
0
 public Try <Validation <Error, RoleDto> > Execute(UpdateRoleCommand msg)
 => ()
 => from x in ValidateUpdateMsg(msg)            // validaciones antes
 let y                 = x.ToRole()
                 let z = _rRepository.Update(y) // otras funciones despues
                         select z.ToRoleDTO();