Пример #1
0
        public async Task <Response> Update(Ad objectToUpdate)
        {
            Response response = Validate.AdValidate(true, objectToUpdate);

            return(response.HasError() ? response : await _repository.Update(objectToUpdate));
        }
Пример #2
0
        public async Task <Response> Creat(Ad objectToCreat)
        {
            Response response = Validate.AdValidate(false, objectToCreat);

            return(response.HasError() ? response : await _repository.Creat(objectToCreat));
        }