public UserViewModel(UserProfile userProfile) { UserId = userProfile.UserId; UserName = userProfile.UserName; UserSurname = userProfile.UserSurname; UserLastName = userProfile.UserLastName; UserPassportSerialNumber = userProfile.UserPassportSerialNumber; PassportIdentificationNumber = userProfile.PassportIdentificationNumber; Email = userProfile.Email; UserBirthDate = userProfile.UserBirthDate; }
public static void UpdateProfileSetting(UserProfile u) { DataManager.InsertUpdateDelete("UpdateProfileSetting", u.FirstName, u.Lastname, u.Email, u.Phone, u.Profilrpic, u.UserProfileId); }
public static void UpdateAddressBook(UserProfile u) { DataManager.InsertUpdateDelete("UpdateAddressBook", u.HouseName, u.Street, u.City, u.State, u.Country, u.Zip, u.UserProfileId); }
public static void InsertUserProfile(UserProfile u) { DataManager.InsertUpdateDelete("InsertUserProfile", u.FirstName, u.Lastname, u.Email, u.Phone, u.HouseName, u.Street, u.City, u.State, u.Country, u.Zip, u.Profilrpic, u.UserId); }
public int SaveUserprofile(UserProfileModel model) { try { using (_context = new HSSNInventoryEntities()) { var data = new UserProfile() { ProfileId = model.ProfileId, ProfileName = model.ProfileName, ProfileDesc = model.ProfileDesc, CreatedDate = model.CreatedDate, CreatedBy = model.CreatedBy, }; _context.Entry(data).State = EntityState.Added; _context.SaveChanges(); return data.ProfileId; } } catch (Exception) { throw; } }