예제 #1
0
 public void CreateUser(UserManagementModel.CreateAspUser obj, int usertypeid)
 {
     db.CreateASPUser(obj.UserName,
                      obj.Password,
                      obj.Email,
                      usertypeid == 5 ? "BRANCH" : (usertypeid == 6 ? "DIS" : "AGENT"),
                      obj.AgentId,//(usertypeid == 5 || usertypeid == 6) ? null : (int?)obj.AgentId,
                      obj.FullName, obj.Address,
                      obj.MobileNo,
                      obj.PhoneNo,
                      usertypeid,
                      obj.CreatedBy,
                      ConfigurationManager.AppSettings["ApplicationName"]);
 }
 public void CreateUser(AdminUserManagementModel.CreateAdminAspUser obj)
 {
     ent.CreateASPUser(obj.UserName, obj.Password, obj.Email, "ADMIN", null, obj.FullName, obj.Address, obj.MobileNo, obj.PhoneNo, (obj.IsSalesMarketingUser != true ? ((int)ATLTravelPortal.Helpers.UserTypes.BackofficeUser) : ((int)ATLTravelPortal.Helpers.UserTypes.MEs)), obj.CreatedBy, "Holidays");
 }