Example #1
0
        public ActionResult Index()
        {
            OrganizationServicesViewModel obj = new OrganizationServicesViewModel();
            ViewBag.OrganizationList = LoadSelectLists();
            obj.OrganizationId = _userStatistics.OrganizationId;

            return View(obj);
        }
Example #2
0
 public ActionResult LoadServices(long organizationId)
 {
     try
     {
         OrganizationServicesViewModel obj = new OrganizationServicesViewModel();
         if (organizationId != 0)
         {
             obj.OrganizationId = organizationId;
             obj.Servcies = objRep.GetOrganizationServices(organizationId);
         }
         else
         {
             return HttpNotFound();
         }
         return View(obj);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }