public IActionResult DeleteSetting(int id)
 {
     if (ModelState.IsValid)
     {
         var model = new SettingModel();
         try
         {
             var title = model.Delete(id);
             model.Response = new ResponseModel($"Setting {title} successfully deleted.", ResponseType.Success);
             return(RedirectToAction("Index"));
         }
         catch (Exception ex)
         {
             model.Response = new ResponseModel("Setting delete failued.", ResponseType.Failure);
             // error logger code
         }
     }
     return(RedirectToAction("index"));
 }