public bool Add(Address address) { bool result = _addressDal.Add(address); if (result) { return(true); } return(false); }
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")); }
public IResult Add(Address address) { _addressDal.Add(address); return(new SuccessResult(Messages.AddressAdded)); }
public IResult Add(Address address) { _addressDal.Add(address); return(new SuccessResult()); }
public IResult Add(Address address) { addressDal.Add(address); return(new SuccessResult(address.Id.ToString())); }
public void Add(Address address) { _addressDal.Add(address); }
public void Add(Addresses entity) { _addressDal.Add(entity); }