コード例 #1
0
 public ActionResult ODZCaseCreat()
 {
     try
     {
         ViewBag.ServiceId = new SelectList(CmsDAL.GetService(), "ServiceId", "ServiceId");
         Case issue = new Case();
         return(View(issue));
     }
     catch (CmsExceptions ex)
     {
         logger.Error(ex.ToString());
         throw ex;
     }
 }
コード例 #2
0
 public PartialViewResult Edit(int caseId)
 {
     try
     {
         using (CMSDBContext context = new CMSDBContext())
         {
             ViewBag.ServiceId = new SelectList(CmsDAL.GetService(), "ServiceId", "ServiceId");
             var user = context.Cases.Where(a => a.CaseId == caseId).FirstOrDefault();
             return(PartialView(user));
         }
     }
     catch (CmsExceptions ex)
     {
         logger.Error(ex.ToString());
         throw ex;
     }
 }
コード例 #3
0
 public ActionResult Edit(Case issue)
 {
     try
     {
         ViewBag.ServiceId = new SelectList(CmsDAL.GetService(), "ServiceId", "ServiceId");
         using (CMSDBContext context = new CMSDBContext())
         {
             SendEmail(issue);
             context.Cases.AddOrUpdate(issue);
             context.SaveChanges();
         }
         return(View(issue));
     }
     catch (CmsExceptions ex)
     {
         logger.Error(ex.ToString());
         throw ex;
     }
 }
コード例 #4
0
 public ActionResult ODZCaseCreat(Case issue)
 {
     try
     {
         ViewBag.ServiceId = new SelectList(CmsDAL.GetService(), "ServiceId", "ServiceId");
         using (CMSDBContext context = new CMSDBContext())
         {
             SendEmail(issue);
             InsertToLDZCase(issue);
             context.Cases.AddOrUpdate(issue);
             context.SaveChanges();
         }
     }
     catch (CmsExceptions ex)
     {
         logger.Error(ex.ToString());
         throw ex;
     }
     return(RedirectToAction(nameof(ODZHome)));
 }
コード例 #5
0
ファイル: CmsBL.cs プロジェクト: sushma-sys/CMS
 public static bool LDZLogin(LDZUser lDZUser)
 {
     return(CmsDAL.LDZUser(lDZUser));
 }
コード例 #6
0
ファイル: CmsBL.cs プロジェクト: sushma-sys/CMS
 public static bool AddCase(Case issue)
 {
     return(CmsDAL.AddCase(issue));
 }
コード例 #7
0
ファイル: CmsBL.cs プロジェクト: sushma-sys/CMS
 public static bool Login(ODZUser oDZUser)
 {
     return(CmsDAL.Login(oDZUser));
 }