public async Task <HttpResponseMessage> LogFatelAsync([FromBody] string message) { try { await logger.AddFatelLogAsync(message); return(Request.CreateResponse(HttpStatusCode.OK, "Added successfully")); } catch (FormatException formatException) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, formatException)); } catch (ArgumentNullException argumentNullException) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, argumentNullException)); } catch (InvalidOperationException invalidOperationException) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, invalidOperationException)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex)); } }