Example #1
0
        public ActionResult EditRepairDetails(int Id)
        {
            var his = Ql.RepairDetails.Find(Id).DeviceId;

            ViewData["RepairHistory"] = Ql.HistoryRepairDetails(his).Where(x => x.Status == 1).ToList();
            ViewData["User"]          = Ql.Users.Where(x => x.Status != 1 && x.IsDeleted != true).ToList();
            ViewData["RepairTypes"]   = Ql.RepairTypes.ToList();
            var repair = Ql.RepairDetailsById(Id).Single();

            return(View(repair));
        }