Example #1
0
 public IHttpActionResult EditOrder([FromBody] OrderViewDTO order)
 {
     try
     {
         var identity = (ClaimsIdentity)User.Identity;
         var name     = identity.Claims.Where(x => x.Type == ClaimTypes.Name).Single().Value;
         return(Ok(_business.Update(order, name)));
     }
     catch
     {
         return(Ok(false));
     }
 }