public long Update_SmsManagerDetails(SMSBE.SmsEventManagerBE _objSmsBE) { try { EventsManager objEvm = _objSmsEntity.EventsManagers.Where(x => x.Event_Id == _objSmsBE.Event_Id).FirstOrDefault(); objEvm.EventName = _objSmsBE.EventName; objEvm.eM_ModuleId = _objSmsBE.eM_ModuleId; objEvm.eM_FormId = _objSmsBE.eM_FormId; objEvm.eM_Event_Id = _objSmsBE.eM_Event_Id; objEvm.eM_CompanyId = _objSmsBE.eM_CompanyId; objEvm.eM_LocationId = _objSmsBE.eM_LocationId; objEvm.CommonSMSBody = _objSmsBE.CommonSMSBody; objEvm.HostSMSBody = _objSmsBE.HostSMSBody; objEvm.VisitorSMSBody = _objSmsBE.VisitorSMSBody; objEvm.EmployeeContact = _objSmsBE.EmployeeContact; objEvm.AdditionalContact = _objSmsBE.AdditionalContact; //objEvm.GroupIds = _objSmsBE.GroupIds; objEvm.CheckForHost = _objSmsBE.CheckForHost; objEvm.CheckForVisitor = _objSmsBE.CheckForVisitor; objEvm.LastModifiedBy = Convert.ToInt32(_objSmsBE.LastModifiedBy); objEvm.LastModifiedOn = DateTime.Now; _objSmsEntity.SaveChanges(); return(objEvm.Event_Id); } catch (Exception ex) { return(0); } }
public long Update_SmsManagerDetails(SMSBE.SmsEventManagerBE _objSMsBE) { return(_objSmsDL.Update_SmsManagerDetails(_objSMsBE)); }
public long Insert_SmsManagerDetails(SMSBE.SmsEventManagerBE _objSMsBE) { return(_objSmsDL.Insert_SmsManagerDetails(_objSMsBE)); }