public async Task <ActionResult> Buy(int id) { Agency db = new Agency(); EstateObject eo = await db.EstateObjects.FirstOrDefaultAsync(f => f.Id == id); EstateObjectViewModel model = await _estateObjectService.Model(eo); return(View(model)); }
public ActionResult StartAddEstateObject() { EstateObjectViewModel model = _estateObjectService.Model(); return(View(model)); }