Exemple #1
0
 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();
Exemple #2
0
 Validation <Error, UpdateUserCmd> ValidateUpdateMsg(UpdateUserCmd msg)
 => from x in ValidateNonNull(msg)
 from y in (