public HttpResponseMessage Delete(long id) { _billRepository.Delete(id); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK); return(response); }
public async Task <IActionResult> DeleteBill(Guid id) { if (!await _billRepository.EntryExists(id)) { return(NotFound()); } await _billRepository.Delete(id); return(NoContent()); }
public async Task <IHttpActionResult> Delete(string id) { try { _billRepo.Delete(b => b.Id == id); _unitOfWork.Commit(); } catch (Exception) { return(InternalServerError()); } return(Ok()); }
public void Delete(int id) { _billRepository.Delete(id); }
public bool Delete(int Id) { return(_repository.Delete(Id)); }
public async Task Delete(long id) { var bill = await GetBillById(id); await _billRepository.Delete(bill); }
public void DeleteBill(int id) { Repository.Delete(id); Repository.Save(); }
public bool Delete(int id) { return(billRepository.Delete(id)); }
public Bill Delete(int id) { return(_billRepository.Delete(id)); }
public void RemoveBill(int id) { repo.Delete(id); repo.Save(); }
/// <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); }
public void DeleteBill(int billId) { var bill = billRepository.GetBy(billId); billRepository.Delete(bill); }