Exemplo n.º 1
0
 public HttpResponseMessage CreateCall([FromBody] Call call)
 {
     try
     {
         var c = DAL.AddCall(call);
         return(Request.CreateResponse(HttpStatusCode.OK, c));
     }
     catch (Exception e)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, e.Message));
     }
 }