public Models.Lookup.ExamTypeModel GetExamTypeByID(int ExamTypeID)
        {
            BusinessLogic.Lookup.ExamTypeManager ExamTypeManager = new BusinessLogic.Lookup.ExamTypeManager();
            BusinessEntity.Lookup.ExamTypeEntity ExamType        = ExamTypeManager.GetExamTypeByID(ExamTypeID);

            return(new Models.Lookup.ExamTypeModel(ExamType));
        }
        public List <Models.Lookup.ExamTypeModel> GetExamTypes()
        {
            BusinessLogic.Lookup.ExamTypeManager ExamTypeManager = new BusinessLogic.Lookup.ExamTypeManager();

            List <BusinessEntity.Lookup.ExamTypeEntity> ExamTypes      = ExamTypeManager.GetExamTypes();
            List <Models.Lookup.ExamTypeModel>          ExamTypeModels = new List <Models.Lookup.ExamTypeModel>();

            foreach (BusinessEntity.Lookup.ExamTypeEntity ExamType in ExamTypes)
            {
                ExamTypeModels.Add(new Models.Lookup.ExamTypeModel(ExamType));
            }

            return(ExamTypeModels);
        }
        public BusinessEntity.Result DeleteExamType(Models.Lookup.ExamTypeModel ExamType)
        {
            BusinessEntity.Result result = new BusinessEntity.Result();
            try
            {
                BusinessLogic.Lookup.ExamTypeManager ExamTypeManager = new BusinessLogic.Lookup.ExamTypeManager();
                result = ExamTypeManager.DeleteExamType(ExamType.MapToEntity <BusinessEntity.Lookup.ExamTypeEntity>());

                return(result);
            }
            catch (Exception ex)
            {
                result.Status  = false;
                result.Message = "ExamType delete failed.";

                return(result);
            }
        }