Пример #1
0
        public async Task <ActionResult> MakeOffer(PropertyOfferViewModel model)
        {
            if (ModelState.IsValid)
            {
                var status = await _propertyManager.AddPropertyOffer(model, User.Identity.Name);

                if (status > 0)
                {
                    model.OfferSubmitted = true;
                }
            }

            return(View(model));
        }