Beispiel #1
0
        public ActionResult Update(int Id)
        {
            var data = _SmsContract.Edit(Id);

            ViewBag.Stores = _StoreContract.Stores.Where(w => w.IsEnabled && !w.IsDeleted && w.IsAttached).Where(w => data.StoreIds.Contains(w.Id)).Select(s => new SelectListItem()
            {
                Text     = s.StoreName,
                Value    = s.Id + "",
                Selected = true,
            }).ToList();

            return(PartialView(data));
        }