Exemple #1
0
        public JsonResult AutoCompleteProducts(string query)
        {
            List <StoreDomainModel> listDM = storeBusiness.GetProductsAutoComplete(query);
            List <StoreViewModel>   listVM = new List <StoreViewModel>();

            AutoMapper.Mapper.Map(listDM, listVM);
            return(Json(listVM, JsonRequestBehavior.AllowGet));
        }