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);
 }
예제 #2
0
 public SubscriberService(DBL.ApplicationDBContext _oDB, ICommunication Service)
 {
     _svr  = Service;
     oDB   = _oDB;
     dbSet = oDB.Set <subscriber> ();
 }
예제 #3
0
 public PlansService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Plans>();
 }
예제 #4
0
 public StoreGadderService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <StoreGadder>();
 }
예제 #5
0
 public UnitMasterService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <UnitMaster>();
 }
예제 #6
0
 public UserService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <ApplicationUser>();
 }
예제 #7
0
 public CompanyService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Company>();
 }
예제 #8
0
 public GurudwaraService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <GurudwaraServices>();
 }
예제 #9
0
 public ScheduleService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Schedule>();
 }
예제 #10
0
 public DictonaryService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Dictonarytb>();
 }
 public CommunicationService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <communication>();
 }
예제 #12
0
 public Auth(DBL.ApplicationDBContext _oDB)
 {
     db    = _oDB;
     dbSet = db.Set <ApplicationUser>();
 }
예제 #13
0
 public MenuTaskService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <MenuTask>();
 }
예제 #14
0
 public StoreRoomService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <StoreRoom>();
 }
예제 #15
0
 public LanguageService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Language>();
 }
예제 #16
0
 public ProductService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Product>();
 }
예제 #17
0
 public SourceService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Source>();
 }
예제 #18
0
 public ActivityService(DBL.ApplicationDBContext _oDB)
 {
     oDB   = _oDB;
     dbSet = oDB.Set <Activity>();
 }