public bool create_update_userINformations_sp(user objUser) { var result = false; objUser.password = ""; objUser.modifiedBy = Convert.ToInt64(BaseUtil.GetSessionValue(AdminInfo.LoginID.ToString())); objUser.modifiedDate = BaseUtil.GetCurrentDateTime(); if (objUser.userId == 0) { objUser.isActive = true; objUser.isDelete = false; objUser.isBlocked = false; objUser.createdBy = Convert.ToInt64(BaseUtil.GetSessionValue(AdminInfo.LoginID.ToString())); objUser.createdDate = BaseUtil.GetCurrentDateTime(); uow.user_.Add(objUser); if (objUser.roleID == 2) { var oclientWebInformation = new Models.clientWebInformation(); oclientWebInformation.themeId = 1; oclientWebInformation.userId = objUser.userId; oclientWebInformation.createdBy = Convert.ToInt64(BaseUtil.GetSessionValue(AdminInfo.LoginID.ToString())); oclientWebInformation.modifiedBy = Convert.ToInt64(BaseUtil.GetSessionValue(AdminInfo.LoginID.ToString())); oclientWebInformation.modifiedDate = BaseUtil.GetCurrentDateTime(); oclientWebInformation.createdDate = BaseUtil.GetCurrentDateTime(); oclientWebInformation.isDelete = false; oclientWebInformation.isActive = true; var oserviceClientWebInfo = new clientWebInformation(); oserviceClientWebInfo.addDefaultthemeToClientWebsite(oclientWebInformation); } result = true; } else { uow.user_.Update(objUser); result = true; } return(result); }
public bool addDefaultthemeToClientWebsite(Models.clientWebInformation oclientWebInformation) { uow.clientWebInformation_.Add(oclientWebInformation); return(true); }