public ActionResult FinalGrdSelection()
 {
     ViewBag.LeatherStatusID     = new SelectList((from t in repository.SysLeatherStatusRepo.Get() where t.IsDelete == false && t.IsActive == true select new { t.LeatherStatusID, t.LeatherStatusName }), "LeatherStatusID", "LeatherStatusName");
     ViewBag.ddlWetBlueStoreList = _dalFinalGradeObj.GetWetBlueProductionStoreList();
     ViewBag.UnitID = new SelectList(from t in obSysUnit.GetAll() where t.UnitCategory == "Leather" select t, "UnitID", "UnitName");
     return(View());
 }
        public ActionResult GetUnit()
        {
            DalSysUnit _dalSysUnit = new DalSysUnit();
            var        sysUnit     = from temp in _dalSysUnit.GetAll().OrderByDescending(s => s.UnitID)
                                     select new {
                UnitID   = temp.UnitID,
                UnitName = temp.UnitName
            };

            return(Json(sysUnit, JsonRequestBehavior.AllowGet));
        }
Beispiel #3
0
        public ActionResult GetUnit()
        {
            var sysUnit = _dalSysUnit.GetAll().OrderByDescending(s => s.UnitID);

            return(Json(sysUnit, JsonRequestBehavior.AllowGet));
        }