コード例 #1
0
        public async Task <IActionResult> Create(Property model)
        {
            if (!this.ModelState.IsValid)
            {
                return(this.View(model));
            }

            var result = await _service.Create(model.Title, model.Currency, model.Price, model.Description, model.CreatedOn, model.Address, this.User.Identity.Name, model.PictureUrl);

            return(RedirectToAction("Details", "Property", new { id = result }));
        }