public ActionResult DeleteRecord(int id) { try { _recordService.DeleteRecord(id); return(Ok()); } catch (Exception e) { return(BadRequest(e.Message)); } }