public ActionResult <BaseResponse> Delete(string id) { var response = new BaseResponse(); try { var product = _dacProduct.Single(id); if (product == null) { throw new Exception("data is not exist"); } _dacProduct.Delete(product); _dacProduct.Commit(); response.Status.SetSuccess(); } catch (Exception e) { Console.WriteLine(e); response.Status.SetError(e); } return(response); }