Пример #1
0
        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"));
        }
Пример #2
0
 public Response Delete(long BuyerID)
 {
     return(repo.Delete(BuyerID));
 }
Пример #3
0
 public void Delete(int Id)
 {
     buyerRepository.Delete(Id);
 }