public ActionResult DeleteSystemSetting(Guid?id) { if (id != null) { _repoSystem.DeleteSetting(id ?? Guid.Empty); } else { return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest)); } return(RedirectToAction("ViewSystemSetting")); }
public IActionResult DeleteSystemSetting(Guid?id) { if (id != null) { _repoSystem.DeleteSetting(id ?? Guid.Empty); } else { return(StatusCode(Microsoft.AspNetCore.Http.StatusCodes.Status400BadRequest)); } return(RedirectToAction("ViewSystemSetting")); }