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); }
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)); }
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)); }
public IActionResult Get(int id) { return(Ok(_sellerService.Get(id))); }
public async Task <IActionResult> Get([FromQuery] SellerQuery query) { return(Ok(await sellerService.Get(query))); }
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)); }