public void AddAppointment(string description, DateTime examTimeStart, DateTime examTimeEnd, string location) { string disciplineTitle = description.Split(' ').First(); var discipline = (from d in _unitOfWork.DisciplineRepository.Entities where d.Title.Equals(disciplineTitle) select d).First(); var exam = new Exam { Description = description, Hall = location, Discipline = discipline, ExaminationTimeStart = examTimeStart, ExaminationTimeEnd = examTimeEnd }; _modelDataAnnotationCheck.ValidateModelDataAnnotations(exam); _unitOfWork.ExamRepository.Add(exam); _unitOfWork.Commit(); }
public void ValidateModel(IUserModel userModel) { //throw new NotImplementedException(); _modelDataAnnotationCheck.ValidateModelDataAnnotations(userModel); ValidateUserEmail(userModel); }
public void ValidateModelDataAnnotations(IPayrollModel model) { modelCheck.ValidateModelDataAnnotations(model); }
public void ValidateModel(IDepartmentModel departmentModel) { _modelDataAnnotationCheck.ValidateModelDataAnnotations(departmentModel); ValidateDepartmentUrl(departmentModel); }
public void ValidateModelDataAnnotations(IStudent student) { _modelDataAnnotationCheck.ValidateModelDataAnnotations(student); }
public void ValidateModelDataAnnotations(ITeacher teacher) { _modelDataAnnotationCheck.ValidateModelDataAnnotations(teacher); }
public void ValidateModel(IRestaurantModel restaurantModel) { //throw new NotImplementedException(); _modelDataAnnotationCheck.ValidateModelDataAnnotations(restaurantModel); }
public void ValidateModel(IDirectResponseSchema taskModel) { _modelDataAnnotationCheck.ValidateModelDataAnnotations(taskModel); ValidateTaskTimeOfCreation(taskModel); }
public void ValidateModel(IMealModel mealModel) { //throw new NotImplementedException(); _modelDataAnnotationCheck.ValidateModelDataAnnotations(mealModel); }