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;
 }
Exemple #2
0
 public static void UpdateProfileSetting(UserProfile u)
 {
     DataManager.InsertUpdateDelete("UpdateProfileSetting", u.FirstName, u.Lastname, u.Email, u.Phone, u.Profilrpic, u.UserProfileId);
 }
Exemple #3
0
 public static void UpdateAddressBook(UserProfile u)
 {
     DataManager.InsertUpdateDelete("UpdateAddressBook", u.HouseName, u.Street, u.City, u.State, u.Country, u.Zip, u.UserProfileId);
 }
Exemple #4
0
 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;
            }
        }