Exemple #1
0
        public ActionResult Index()
        {
            EducationFormatViewModel educationformatModel = new EducationFormatViewModel();

            educationformatModel.EducationFormatResults = Mapper.Map <IEnumerable <EducationFormat> >(_educationService.GetAllEducationFormatByClientID(HCRGCLIENT.ClientID));
            if (HCRGCLIENT.ClientTypeID == 1)
            {
                educationformatModel.IsHCRGAdmin = true;
            }
            else
            {
                educationformatModel.IsHCRGAdmin = false;
            }
            return(View(educationformatModel));
        }