Пример #1
0
        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())));
            }
        }
Пример #2
0
 internal void Delete(budget_transfer_request btrRecord)
 {
     _context.budget_transfer_request.Remove(btrRecord);
 }