예제 #1
0
 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;
 }
예제 #2
0
 public static void UpdateProfileSetting(UserProfile u)
 {
     DataManager.InsertUpdateDelete("UpdateProfileSetting", u.FirstName, u.Lastname, u.Email, u.Phone, u.Profilrpic, u.UserProfileId);
 }
예제 #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);
 }
예제 #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;
            }
        }