public IHttpActionResult Add(ExamDataModel model)
        {
            if (model == null || !ModelState.IsValid)
            {
                return(BadRequest());
            }

            var exam = new Exam()
            {
                Name      = model.Name,
                StartTime = model.StartTime,
                EndTime   = model.EndTime
            };

            this.data.Exams.Add(exam);

            try
            {
                this.data.SaveChanges();
            }
            catch (Exception)
            {
                return(InternalServerError());
            }

            // TODO: Add location
            return(Ok(exam.Id));
        }
 public void Add(ExamDataModel Exam)
 {
 }
 public void Edit(ExamDataModel model)
 {
 }