Example #1
0
 public Try <Validation <Error, UserDto> > Execute(CreateUserCmd msg, Stream stream)
 => ()
 => from x in ValidateCreateUserMsg(msg)
 let user                                         = CreatePassToUser(x.ToUser())
                            let y                 = _uRepository.Create(user)
                                            let z = SavePhoto(stream, y)
                                                    select y.ToUserDTO();
Example #2
0
 Validation <Error, CreateUserCmd> ValidateCreateUserMsg(CreateUserCmd msg)
 => from x in ValidateNonNull(msg)
 from y in (