示例#1
0
 public ActionResult Search(CurrencyViewModels model)
 {
     try
     {
         model = new CurrencyViewModels();
         var listData = _factory.GetListData();
         model.ListItem = listData;
     }
     catch (Exception e)
     {
         NSLog.Logger.Error("CurrencySearch: ", e);
         return(new HttpStatusCodeResult(400, e.Message));
     }
     return(PartialView("_ListData", model));
 }
示例#2
0
        //get currency
        public string GetCurrency()
        {
            string             currency = "";
            CurrencyViewModels model    = new CurrencyViewModels();

            try
            {
                var listData = _factory.GetListData();
                listData       = listData.Where(x => x.IsActive == true).ToList();
                model.ListItem = listData;
                currency       = model.ListItem[0].Symbol;
            }
            catch (Exception e)
            {
                NSLog.Logger.Error("CurrencySearch: ", e);
            }
            return(currency);
        }