public void InsertAlertScheduler(AlertSchedulerMaster Scheduler)
 {
     Scheduler.Deactivate     = "N";
     Scheduler.EnteredBy      = 10;
     Scheduler.EntryDate      = DateTime.Now;
     Scheduler.ModifiedBy     = null;
     Scheduler.ModifiedDate   = null;
     Scheduler.DeactivateBy   = null;
     Scheduler.DeactivateDate = null;
     _AlertSchedulerMaster.Insert(Scheduler);
 }
コード例 #2
0
        /*
         * Added by     : Prakash
         * Added Date   : 30 Sep, 2017
         */
        public IHttpActionResult unblockISBNset()
        {
            try
            {
                AlertSchedulerMaster _AlertSchedulerMaster = new AlertSchedulerMaster();
                _AlertSchedulerMaster.SchedulerName = "UnblockISBN";
                _AlertSchedulerMaster.SchedulerDate = DateTime.Now;

                _IServiceApplicationEmailSetup.InsertAlertScheduler(_AlertSchedulerMaster);

                var _GetStatus = _dbContext.ExecuteStoredProcedureListNewData <SLV.Model.Common.Common>("Proc_unblockISBN_set").ToList();
                return(Json("OK"));
            }
            catch (ACSException ex)
            {
                _ILog.LogException("", Severity.ProcessingError, "SchedulerController.cs", "unblockISBNset", ex);
                return(Json(ex.InnerException.Message));
            }
            catch (Exception ex)
            {
                _ILog.LogException("", Severity.ProcessingError, "SchedulerController.cs", "unblockISBNset", ex);
                return(Json(ex.InnerException.Message));
            }
        }