Пример #1
0
        public bool Add(Address address)
        {
            bool result = _addressDal.Add(address);

            if (result)
            {
                return(true);
            }

            return(false);
        }
Пример #2
0
        public ActionResult Address(FormCollection frm)
        {
            string  cookie = Request.Cookies["user"].Value;
            Address adres  = new Address()
            {
                UserID        = _userDal.GetUserByCookie(cookie).ID,
                Title         = frm["baslik"],
                RegionID      = Convert.ToInt32(frm["ilce"]),
                AddressDetail = frm["detay"]
            };

            _addressDal.Add(adres);
            return(RedirectToAction("Address"));
        }
Пример #3
0
        public IResult Add(Address address)
        {
            _addressDal.Add(address);

            return(new SuccessResult(Messages.AddressAdded));
        }
 public IResult Add(Address address)
 {
     _addressDal.Add(address);
     return(new SuccessResult());
 }
Пример #5
0
 public IResult Add(Address address)
 {
     addressDal.Add(address);
     return(new SuccessResult(address.Id.ToString()));
 }
Пример #6
0
 public void Add(Address address)
 {
     _addressDal.Add(address);
 }
Пример #7
0
 public void Add(Addresses entity)
 {
     _addressDal.Add(entity);
 }