Ejemplo n.º 1
0
        public ActionResult Create(int?id)

        {
            if (id != null)
            {
                _MLRModel                  = _MLRBs.GetById(Convert.ToInt32(id));
                _MLRModel.UserLists        = _MLRBs.UserList().ToList();
                _MLRModel.MasjidLists      = _MLRBs.MasjidList().ToList();
                _MLRModel.RequestTypeLists = _MLRBs.RequestTypeList().ToList();
            }
            else
            {
                _MLRModel.MasjidLists      = _MLRBs.MasjidList().ToList();
                _MLRModel.UserLists        = _MLRBs.UserList().ToList();
                _MLRModel.RequestTypeLists = _MLRBs.RequestTypeList().ToList();
            }

            return(View(_MLRModel));
        }
Ejemplo n.º 2
0
 public ActionResult Create(int?id)
 {
     if (id != null)
     {
         var _MasjidLandRequest = _MasjidLandRequestBusiness.GetById(Convert.ToInt32(id));
         _MasjidLandRequest.AddMasjidCommitteeList = _MasjidLandRequestBusiness.MasjidCommitteeList();
         _MasjidLandRequest.AddMasjidList          = _MasjidLandRequestBusiness.MasjidList();
         _MasjidLandRequest.UserList = _MasjidLandRequestBusiness.UserList();
         return(View(_MasjidLandRequest));
     }
     else
     {
         _MasjidLandRequest.MasjidLandRequestList  = _MasjidLandRequestBusiness.LandRequestList().ToList();
         _MasjidLandRequest.AddMasjidCommitteeList = _MasjidLandRequestBusiness.MasjidCommitteeList();
         _MasjidLandRequest.AddMasjidList          = _MasjidLandRequestBusiness.MasjidList();
         _MasjidLandRequest.UserList = _MasjidLandRequestBusiness.UserList();
         return(View(_MasjidLandRequest));
     }
 }