public List <CheckListModal> GetCheckList() { try { return(_checkListService.GetCheckList()); } catch (Exception ex) { throw ex; } }
public IActionResult CheckLists(int id) { try { var result = _checkListService.GetCheckList(id); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }