Esempio n. 1
0
 public sp_signup_insert_Result UserSignUp(User user, string roleName)
 {
     using (var db = new AccessEntities())
     {
         try
         {
             var res = db.sp_signup_insert(user.FirstName, user.LastName, user.UserName, user.Password, user.NewPassword, user.IsActive, user.IsOnline, user.IsConfirm, user.LastLoginTime, user.Gender, user.MarriedStatus, user.BirthDate, user.CountryNo, user.LanguageNo, user.Address, user.E_Mail, user.PhotoPath, user.CreationDate, user.EditionDate, user.LastRefreshTime, user.LastChangePassDate, user.NativeID, user.PersonnelID, user.ActiveSessionID, user.SystemProfile, user.IPLocation, user.DepartmentID, user.Phone, user.Mobile, roleName).FirstOrDefault();
             return(res);
         }
         catch (Exception ex)
         {
             WebUtility.Helpers.LogHelpers.TakeALogWithTime(ex.Message);
             return(new sp_signup_insert_Result());
         }
     }
 }