コード例 #1
0
        public JsonResult DeleteAnalyze(int ID)
        {
            Service_Analyzes service_Analyzes = unitOfWork.Service_Analyze.Find(ID);

            unitOfWork.Service_Analyze.Delete(service_Analyzes);
            unitOfWork.Save();

            return(Json(ID));
        }
コード例 #2
0
 public IActionResult Edit(Service_Analyzes service_Analyzes)
 {
     if (ModelState.IsValid)
     {
         unitOfWork.Service_Analyze.AddOrUpdate(service_Analyzes);
         unitOfWork.Save();
         return(RedirectToAction(nameof(Index), new { Service_ID = service_Analyzes.Service_ID }));
     }
     return(View(service_Analyzes));
 }