public ActionResult ResetPIN(Guid Id) { POSBLL pb = new POSBLL(); var model = pb.GetPOSInfoById(Id); return(PartialView(model)); }
public ActionResult Edit(Guid id) { POSBLL pb = new POSBLL(); var model = pb.GetPOSInfoById(id); model.Receivables_Tier = model.Receivables_Tier * 100; model.Markup = model.Markup * 100; List <SelectListItem> statusList = new List <SelectListItem>(); statusList.Add(new SelectListItem() { Text = "Actived", Value = "1" }); statusList.Add(new SelectListItem() { Text = "Locked", Value = "0" }); ViewBag.StatusList = statusList; List <SelectListItem> funcList = new List <SelectListItem>(); funcList.Add(new SelectListItem() { Text = "Enable", Value = "true" }); funcList.Add(new SelectListItem() { Text = "Disable", Value = "false" }); ViewBag.FuncList = funcList; var coinList = FoundationDB.CryptocurrencyDb.GetList(); var table = FiiiPayDB.DB.Queryable <MerchantWallets>().Where(t => t.MerchantAccountId == id).ToList(); List <SelectListItem> oList = new List <SelectListItem>(); if (table != null && table.Count > 0) { foreach (var item in table) { oList.Add(new SelectListItem() { Text = coinList.Where(t => t.Id == item.CryptoId).Select(t => t.Name).FirstOrDefault(), Value = item.Id.ToString() }); } } ViewBag.CURList = oList; return(PartialView(model)); }