Ejemplo n.º 1
0
 public async Task <long> AddEZYReportExportMonitor_WinService(EZYReportExportMonitor_WinService ObjEZYReportExportMonitor_WinService)
 {
     try
     {
         if (ObjEZYReportExportMonitor_WinService != null)
         {
             if (ObjEZYReportExportMonitor_WinService.EZYReportExportMonitorID < 1)
             {
                 ObjEZYReportExportMonitor_WinService.AddOn = DateTime.Now;
                 _context.Add(ObjEZYReportExportMonitor_WinService);
             }
             else
             {
                 ObjEZYReportExportMonitor_WinService.ModOn = DateTime.Now;
                 _context.Update(ObjEZYReportExportMonitor_WinService);
             }
             await _context.SaveChangesAsync();
         }
         return(ObjEZYReportExportMonitor_WinService.EZYReportExportMonitorID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
        public async Task <JsonResult> SaveEmailMe(EZYReportExportMonitor_WinService ObjEZYReportExportMonitor_WinService)
        {
            CultureInfo culture = new CultureInfo("en-GB");

            ObjEZYReportExportMonitor_WinService.PStartSubmissionDate = Convert.ToDateTime(ObjEZYReportExportMonitor_WinService.FileName, culture.DateTimeFormat);
            ObjEZYReportExportMonitor_WinService.PEndSubmissionDate   = Convert.ToDateTime(ObjEZYReportExportMonitor_WinService.FilePath, culture.DateTimeFormat);
            ObjEZYReportExportMonitor_WinService.FileName             = string.Empty;
            ObjEZYReportExportMonitor_WinService.FilePath             = string.Empty;

            var ID = await _ezyExpRptService.AddEZYReportExportMonitor_WinService(ObjEZYReportExportMonitor_WinService);

            if (ID > 0)
            {
                return(Json(true, JsonRequestBehavior.AllowGet));
            }

            return(Json(false, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
 public async Task <long> AddEZYReportExportMonitor_WinService(EZYReportExportMonitor_WinService ObjEZYReportExportMonitor_WinService)
 {
     return(await _ezyExpRptRepository.AddEZYReportExportMonitor_WinService(ObjEZYReportExportMonitor_WinService));
 }