コード例 #1
0
ファイル: ServiceController.cs プロジェクト: btshft/MakeEvent
        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));
        }