Пример #1
0
        public JsonResult ConfirmInterview(InterviewVM model)
        {
            var myContent   = JsonConvert.SerializeObject(model);
            var buffer      = System.Text.Encoding.UTF8.GetBytes(myContent);
            var byteContent = new ByteArrayContent(buffer);

            byteContent.Headers.ContentType = new MediaTypeHeaderValue("application/json");

            var result = client.PutAsync("UserInterview/ConfirmInterview/" + model.Id, byteContent).Result;

            return(Json(result));
        }
Пример #2
0
        public ActionResult Create(InterviewVM ivm)
        {
            Interview interviewdomain = new Interview()
            {
                InterviewId        = ivm.InterviewId,
                User_Id            = 1,
                Candidat_Id        = 1,
                Interview_Date     = ivm.Interview_Date,
                Interview_Location = ivm.Interview_Location,
                Interview_Type     = (TypeInt)ivm.Interview_Type
            };

            Service.Add(interviewdomain);
            Service.Commit();
            // Service.Dispose();
            return(View());
        }