public AlertBack DeleteGeneralSetting([FromBody] GeneralSetting model, int id = 0) { AlertBack alert = new AlertBack(); generalSettingService.Delete(model); alert.status = "success"; alert.message = "Register Successfully"; return(alert); }
public IActionResult Delete(int id) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); try { GeneralSetting ObjGeneralSetting = _generalSettingService.Get(id); _generalSettingService.Delete(ObjGeneralSetting); sb.Append("Sumitted"); return(Content(sb.ToString())); } catch (Exception ex) { sb.Append("Error :" + ex.Message); } return(Content(sb.ToString())); }