Пример #1
0
        public BaseResponse <bool> CreateAD(ADCreateModel req)
        {
            var map = _mapper.Map <Advertisement>(req);
            var res = AdApp.Add(map);

            return(Helper <bool, bool> .MapToBase(res, _mapper));
        }
Пример #2
0
 public BaseResponse <bool> Post(ADCreateModel value)
 {
     return(_service.CreateAD(value));
 }