Exemple #1
0
        public HttpResponseMessage Delete(long id)
        {
            _billRepository.Delete(id);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK);

            return(response);
        }
Exemple #2
0
        public async Task <IActionResult> DeleteBill(Guid id)
        {
            if (!await _billRepository.EntryExists(id))
            {
                return(NotFound());
            }

            await _billRepository.Delete(id);

            return(NoContent());
        }
Exemple #3
0
 public async Task <IHttpActionResult> Delete(string id)
 {
     try
     {
         _billRepo.Delete(b => b.Id == id);
         _unitOfWork.Commit();
     }
     catch (Exception)
     {
         return(InternalServerError());
     }
     return(Ok());
 }
Exemple #4
0
 public void Delete(int id)
 {
     _billRepository.Delete(id);
 }
 public bool Delete(int Id)
 {
     return(_repository.Delete(Id));
 }
Exemple #6
0
        public async Task Delete(long id)
        {
            var bill = await GetBillById(id);

            await _billRepository.Delete(bill);
        }
Exemple #7
0
 public void DeleteBill(int id)
 {
     Repository.Delete(id);
     Repository.Save();
 }
 public bool Delete(int id)
 {
     return(billRepository.Delete(id));
 }
Exemple #9
0
 public Bill Delete(int id)
 {
     return(_billRepository.Delete(id));
 }
 public void RemoveBill(int id)
 {
     repo.Delete(id);
     repo.Save();
 }
Exemple #11
0
 /// <summary>
 /// Method whose purpose is to delete passed
 /// bill object in the database.
 /// </summary>
 /// <param name="bill">Existing bill model object.</param>
 /// <returns>Returns true if the query is successfully
 /// executed otherwise returns false.</returns>
 public bool Delete(BillModel bill)
 {
     return(_billBusinessLogic.Delete(bill) > 0 ? true : false);
 }
Exemple #12
0
        public void DeleteBill(int billId)
        {
            var bill = billRepository.GetBy(billId);

            billRepository.Delete(bill);
        }