/// <summary> /// Update changes in the context /// </summary> /// <param name="objContex"></param> public static void Update(FacultyDto facultyDto, ModelUnibookContainer objContex) { try { Faculty faculty = FacultyBrl.Get(facultyDto.FacultyId, objContex); faculty.Name = faculty.Name; faculty.Deleted = faculty.Deleted; FacultyDal.Update(faculty, objContex); } catch (Exception ex) { throw ex; } }
/// <summary> /// Update changes in the context /// </summary> /// <param name="career"></param> /// <param name="objContex"></param> public static void Update(CareerDto careerDto, ModelUnibookContainer objContex) { try { Career career = CareerBrl.Get(careerDto.CareerId, objContex); career.Name = careerDto.Name; career.Deleted = careerDto.Deleted; career.Faculty = FacultyBrl.Get(careerDto.Faculty.FacultyId, objContex); CareerDal.Update(career, objContex); } catch (Exception ex) { throw ex; } }