public IHttpActionResult Delete(SaleLineItemViewModel model) { if (!ModelState.IsValid) { BadRequest(); } else { _serviceSale.DeleteSaleLineItem(model.SaleLineItemId); return(Ok()); } return(Ok()); }