Пример #1
0
        public JsonResult DisableEducationEducationFormat(EducationFormatAvailable educationFormatAvailable)
        {
            educationFormatAvailable.EducationFormatID    = educationFormatAvailable.EducationFormatID;
            educationFormatAvailable.EducationID          = educationFormatAvailable.EducationID;
            educationFormatAvailable.EducationAvailableID = educationFormatAvailable.EducationAvailableID;

            if (educationFormatAvailable.IsActive == false)
            {
                educationFormatAvailable.IsActive = true;
            }
            else
            {
                educationFormatAvailable.IsActive = false;
            }
            var EducationFormatlinkID = _educationService.UpdateEducationFormatAvailable(Mapper.Map <HCRGUniversityMgtApp.NEPService.EducationService.EducationFormatAvailable>(educationFormatAvailable));

            educationFormatAvailable.IsActive = false;
            return(Json("Change done  Successfully"));
        }