public IActionResult EliminarArticulo(int IDUsuario, int IDArticulo, Boolean EnProcesar) { ObjectResult result; try { var ad = new AdaptadorAtc(_configuration); _carrito = ad.CarritosUsuariosEliminarArticulo(IDUsuario, IDArticulo, EnProcesar); result = new ObjectResult(_carrito) { StatusCode = (int)HttpStatusCode.OK }; } catch (Exception ex) { result = new ObjectResult(ex) { StatusCode = (int)HttpStatusCode.Conflict }; Request.HttpContext.Response.Headers.Add("dsError", ex.Message); } return(result); }