Example #1
0
        public async Task <GrainOperationResult> CreateUser(CreateUserViewModel model)
        {
            try
            {
                await _repository.CreateUser(model);

                return(new GrainOperationResult {
                    Successful = true, Message = "Operation executed successfully."
                });
            }
            catch (Exception ex)
            {
                return(ex.ResultFromException());
            }
        }
 public async Task <string> CreateUser(CreateUserViewModel model)
 {
     return(await _createRepository.CreateUser(model));
 }