public HttpResponseMessage ScheduleTime([FromBody] InterviewSchedule Schedule)
        {
            var responseCode = HttpStatusCode.OK;

            try
            {
                InterviewProcess cc = new InterviewProcess();
                cc.ScheduleInterview(Schedule);
            }
            catch (Exception e)
            {
                responseCode = HttpStatusCode.BadRequest;
            }
            return(new HttpResponseMessage {
                StatusCode = responseCode
            });
        }
        public HttpResponseMessage CreateCandidate([FromBody] Candidate value)
        {
            var responseCode = HttpStatusCode.OK;;

            try
            {
                InterviewProcess cc = new InterviewProcess();
                int id         = cc.CreateCandidate(value);
                var interSched = new InterviewSchedule();
                interSched.CandidateId = id;
                interSched.RoomId      = value.interviewSchedule.RoomId;
                interSched.UserId      = value.interviewSchedule.UserId;
                interSched.Date        = value.interviewSchedule.Date;
                interSched.Time        = value.interviewSchedule.Time;
                cc.ScheduleInterview(interSched);
            }
            catch (Exception e)
            {
                responseCode = HttpStatusCode.BadRequest;
            }
            return(new HttpResponseMessage {
                StatusCode = responseCode
            });
        }