Ejemplo n.º 1
0
        public ActionResult Check(int?Test_ID, string User_id, DateTime?Date)
        {
            var result     = ResultService.GetFullOpen(User_id, Test_ID.Value, Date.Value);
            var mapper     = new MapperConfiguration(cfg => cfg.CreateMap <ResultDTO, ResultViewModel>()).CreateMapper();
            var resultView = mapper.Map <ResultDTO, ResultViewModel>(result);

            if (result == null)
            {
                return(RedirectToAction("Error.cshtml"));
            }
            return(View(resultView));
        }