public IHttpActionResult Delete(int id) { try { budget_transfer_request budgetTransferRequest = db.budget_transfer_request.Find(id); if (budgetTransferRequest == null) { return(NotFound()); } db.budget_transfer_request.Remove(budgetTransferRequest); db.SaveChanges(); return(Ok(budgetTransferRequest)); } catch (Exception exError) { return(BadRequest((new Error(0, exError.Message, "PutbudgetTransferRequest").ToString()))); } }
internal void Delete(budget_transfer_request btrRecord) { _context.budget_transfer_request.Remove(btrRecord); }