public Try <Validation <Error, UserDto> > Execute(UpdateUserCmd msg, Stream stream, Boolean fileWasChange, Boolean restorePass) => () => from x in ValidateUpdateMsg(msg) // validaciones antes let user = CreatePassToUser(x.ToUser(), restorePass) let y = _uRepository.Update(user) // otras funciones despues let z = SavePhoto(stream, fileWasChange, y) select y.ToUserDTO();
Validation <Error, UpdateUserCmd> ValidateUpdateMsg(UpdateUserCmd msg) => from x in ValidateNonNull(msg) from y in (