public bool SaveCommunication(CommunicationModel obj) { try { communication oComm = new communication(); oComm.SentTo = obj.SentTo; oComm.WhenToSend = obj.WhenToSend; oComm.SentTime = DateTime.Now; oComm.Subject = obj.Subject; oComm.AlertTypeID = 1; oComm.CommunicationStatusID = 3; oComm.Contents = obj.Contents; oComm.CreatedDate = DateTime.Now; oDB.Communication.Add(oComm); oDB.SaveChanges(); oDB.Dispose(); oDB = null; return(true); } catch (Exception ex) { throw; } return(false); }
public SubscriberService(DBL.ApplicationDBContext _oDB, ICommunication Service) { _svr = Service; oDB = _oDB; dbSet = oDB.Set <subscriber> (); }
public PlansService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <Plans>(); }
public StoreGadderService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <StoreGadder>(); }
public UnitMasterService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <UnitMaster>(); }
public UserService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <ApplicationUser>(); }
public CompanyService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <Company>(); }
public GurudwaraService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <GurudwaraServices>(); }
public ScheduleService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <Schedule>(); }
public DictonaryService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <Dictonarytb>(); }
public CommunicationService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <communication>(); }
public Auth(DBL.ApplicationDBContext _oDB) { db = _oDB; dbSet = db.Set <ApplicationUser>(); }
public MenuTaskService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <MenuTask>(); }
public StoreRoomService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <StoreRoom>(); }
public LanguageService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <Language>(); }
public ProductService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <Product>(); }
public SourceService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <Source>(); }
public ActivityService(DBL.ApplicationDBContext _oDB) { oDB = _oDB; dbSet = oDB.Set <Activity>(); }