public ActionResult Delete(int id, IFormCollection collection) { try { bool result = _TemperatureService.DeleteTemperature(id); if (result) { return(RedirectToAction(nameof(Index))); } throw new Exception(); } catch { return(View()); } }
public ActionResult Delete(int id, IFormCollection collection) { try { bool result = _TemperatureService.DeleteTemperature(id); if (result) { return(RedirectToAction(nameof(Index))); } throw new Exception(); } catch { return(View()); } }