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)); }
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)); }