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);
 }
Beispiel #2
0
 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>();
 }
Beispiel #4
0
 public StoreGadderService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <StoreGadder>();
 }
 public UnitMasterService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <UnitMaster>();
 }
Beispiel #6
0
 public UserService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <ApplicationUser>();
 }
Beispiel #7
0
 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>();
 }
Beispiel #10
0
 public DictonaryService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Dictonarytb>();
 }
 public CommunicationService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <communication>();
 }
Beispiel #12
0
 public Auth(DBL.ApplicationDBContext _oDB)
 {
     db    = _oDB;
     dbSet = db.Set <ApplicationUser>();
 }
 public MenuTaskService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <MenuTask>();
 }
Beispiel #14
0
 public StoreRoomService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <StoreRoom>();
 }
Beispiel #15
0
 public LanguageService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Language>();
 }
 public ProductService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Product>();
 }
Beispiel #17
0
 public SourceService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Source>();
 }
 public ActivityService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Activity>();
 }