Exemplo n.º 1
0
        public async Task <HttpResponseMessage> CloseCustomer(HttpRequestMessage request, int id)
        {
            try
            {
                await interviewService.CustomerInterviewClose(id);

                unitOfWork.Save();

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

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