예제 #1
0
 public IHttpActionResult Post([FromBody] customer value)
 {
     try
     {
         var    result   = context.Post(value);
         string username = User.Identity.Name;
         context.BroadcastData(result);
         return(Ok(result));
     }
     catch (Exception ex)
     {
         return(Content(HttpStatusCode.NotAcceptable, ex.Message));
     }
 }