Esempio n. 1
0
        public async Task <DataResponse <Ad> > GetAdsForID(Guid SellerID)
        {
            DataResponse <Ad> response = new DataResponse <Ad>();

            if (SellerID == null)
            {
                response.AddError("ID", "ID invalido");
            }

            return(response.HasError() ? response : await _repository.GetAdsForID(SellerID));
        }