public GetToolsMasterResponseDto GetToolsMaster() { var response = new GetToolsMasterResponseDto(); var cModel = new GetToolsMasterCM() { //PageIndex = getToolsMasterRequestDto.PageIndex, //PageSize = getToolsMasterRequestDto.PageSize, //ToolsCode = getToolsMasterRequestDto.ToolCode }; var model = toolsMastersRepository.GetToolsMaster(cModel); if (model != null && model.GetToolsMasterList.Any()) { response = ToolsMasterMapper((List <ToolsMasterModel>)model.GetToolsMasterList, response); response.RecordCount = model.RecordCount; } return(response); }