Exemplo n.º 1
0
        public ActionResult BookedList(string orgId)
        {
            if (string.IsNullOrEmpty(orgId))
            {
                return(RedirectToAction("Index", "Home"));
            }

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

            return(View("BookedList", models));
        }