示例#1
0
        public async Task <HttpResponseMessage> AddCustomerInterview(HttpRequestMessage request, [FromBody] CustomerIntreviewInDTO value)
        {
            try
            {
                await interviewService.AddCustomerInterview(value.Candidate, value.Date, value.EndDate);

                unitOfWork.Save();

                return(request.CreateResponse(HttpStatusCode.OK));
            }
            catch (Exception ex)
            {
                logger.Error(ex, JsonConvert.SerializeObject(value));

                return(request.CreateResponse(HttpStatusCode.InternalServerError));
            }
        }