/// <summary> /// To get checklist by id from repository /// </summary> /// <param name="id"></param> /// <returns>an asynchronous checklist</returns> public async Task <CheckList> GetCheckListById(int id) { try { return(await _checkListRepository.GetCheckListByIdAsync(id)); } catch (Exception ex) { _logger.Log(ex, LogLevel.Error, ex.Message); return(null); } }