Esempio n. 1
0
        public async Task <KanbanResult> GetUserDetail(string userName)
        {
            var user = await userManager.FindByNameAsync(userName);

            if (user != null)
            {
                core.UserDetail userDetail = new core.UserDetail
                {
                    UserName = user.UserName,
                    Email    = user.Email,
                    PhoneNo  = user.PhoneNumber,
                    ImageUrl = user.ImageUrl,
                    AboutMe  = user.AboutMe
                };

                return(KanbanResult.CreateOkResult(userDetail));
            }
            else
            {
                return(KanbanResult.CreateErrorResult(new List <string> {
                    "User not found"
                }));
            }
        }
Esempio n. 2
0
 public Task <KanbanResult> SaveUserDetails(UserDetail userDetail)
 {
     return(_userRepository.SaveUserDetail(userDetail));
 }