public ActionResult Deactivate(int id, string confirmButton) { Buyer b = buyerRepository.GetBuyer(id); if (b == null) { return(View("NotFound")); } buyerRepository.Delete(b); /************** Saving log ***************/ log.DoAll("Buyer: " + b.ID + ", " + b.Name + ", " + b.Pass + ", " + b.ComName + ", " + b.Email + ", " + b.Country + ", " + b.Valid + "."); /*****************************************/ buyerRepository.Save(); return(View("~/Views/Buyer/Deactivated.aspx")); }
public Response Delete(long BuyerID) { return(repo.Delete(BuyerID)); }
public void Delete(int Id) { buyerRepository.Delete(Id); }