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