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