Пример #1
0
        public CustomerInputModel GetFilters()
        {
            var customer = new CustomerInputModel()
            {
                Cities          = _fieldService.GetDropDownList(_cityService.Get()),
                Classifications = _fieldService.GetDropDownList(_classificationService.Get()),
                Regions         = _fieldService.GetDropDownList(_regionService.Get()),
                Genders         = _fieldService.GetDropDownList(_genderService.Get()),
                Sellers         = _fieldService.GetDropDownList(_sellerService.Get())
            };

            return(customer);
        }
Пример #2
0
        public ActionResult <BaseResult <List <SellerViewModel> > > Get()
        {
            var result = _sellerService.Get();

            if (result.Success)
            {
                var resultMap = _mapper.Map <List <SellerViewModel> >(result.Data);

                return(BaseResult <List <SellerViewModel> > .OK(resultMap));
            }

            return(BaseResult <List <SellerViewModel> > .NotOK(result.Messages));
        }
Пример #3
0
        public IActionResult Detail(string identifier)
        {
            _reqinfo.UserId   = Request.Headers["UserId"].ToString();
            _reqinfo.BranchId = Request.Headers["BranchId"].ToString();
            _reqinfo.DeviceId = Request.Headers["DeviceId"].ToString();

            var referer = _Service.Get(identifier);

            if (referer == null)
            {
                return(NotFound());
            }

            return(Ok(referer));
        }
Пример #4
0
 public IActionResult Get(int id)
 {
     return(Ok(_sellerService.Get(id)));
 }
Пример #5
0
 public async Task <IActionResult> Get([FromQuery] SellerQuery query)
 {
     return(Ok(await sellerService.Get(query)));
 }
Пример #6
0
 public SellerViewModel(string Id)
 {
     GeneralInitilize();
     CurrentSeller = _repository.Get(Id);
     Mode          = ScreenOpenMode.Edit;
 }
        public async Task <ActionResult <SellerDto> > Get()
        {
            var sellers = _mapper.Map <IList <SellerDto> >(await _sellerService.Get());

            return(Response(sellers));
        }