public async Task <ActionResult> SaveUser(VMUserMaster vMUser) { int UserID = int.Parse(((ClaimsIdentity)this.User.Identity).Claims.FirstOrDefault(c => c.Type == "UserID").Value); var result = await Task.FromResult(_service.SaveUser(vMUser, UserID)); return(Ok(result)); }
int IUserMasterService.SaveUser(VMUserMaster vMUser, int UserID) { UserMaster user = _mapper.Map <UserMaster>(vMUser); int data = _repository.SaveUser(user, UserID); return(data); }
public async Task <IActionResult> UpdateProfile(VMUserMaster vMUser) { var result = await Task.FromResult(_service.UpdateProfile(vMUser)); return(Ok(result)); }
public int UpdateProfile(VMUserMaster vMUser) { int data = _repository.UpdateProfile(vMUser); return(data); }
public VMUserMaster ProfileData(int UserID) { VMUserMaster data = _repository.ProfileData(UserID); return(data); }