Пример #1
0
        public ActionResult Index(string orgId)
        {
            if (string.IsNullOrEmpty(orgId))
            {
                return(RedirectToAction("Index", "Home"));
            }

            var services = _serviceService.GetByOrganizationId(orgId).Data;
            var models   = Mapper.Map <IEnumerable <ServiceMvcViewModel> >(services);

            return(View(models));
        }