public async Task <ServiceResult <List <PlaylistModel> > > GetMany(int skip, int take) { var serviceResult = new ServiceResult <List <PlaylistModel> >(); var result = await _playlistRepository.GetMany(skip, take); if (result.Success) { serviceResult.Success = true; serviceResult.Result = result.Entities; } else { serviceResult.Error.Code = ErrorStatusCode.BudRequest; serviceResult.Error.Description = result.Message; } return(serviceResult); }