public ActionResult Manage(Guid id) { var dto = _landlordService.GetPropertyImage(id); var model = new PropertyImageDetailModel(dto); return View("Manage", model); }
public ActionResult Manage(PropertyImageDetailModel model) { if (ModelState.IsValid) { var dto = model.ToDto(); var edited = _landlordService.UpdatePropertyImage(dto); return RedirectToAction("View", "Property", new { id = dto.PropertyId }); } else { return View("Manage", model); } }