private object GetEquipments(dynamic parameters) { int pageNumber = Int32.Parse(Request.Query["pageNumber"].Value); int pageSize = Int32.Parse(Request.Query["pageSize"].Value); OperationType?operationType = (OperationType)Int32.Parse(Request.Query["operationType"].Value); var equipments = _dbManager.GetEquipments(pageNumber, pageSize, operationType); var dtoEquipments = equipments.Select(e => _dtoConverter.ConvertEquipment(e)).ToList(); return(dtoEquipments); }