public async Task <IActionResult> GetEstate(EstateViewModel viewModel, CancellationToken cancellationToken) { // TODO: Update the estate information return(this.View("EstateDetails", viewModel)); }
public async Task Create(EstateViewModel model) { await _bus.Dispatch(new CreateEstateCommand { Address = model.Address, Area = model.Area, Direction = model.Direction, Name = model.Name, OwnerId = model.OwnerId }); }
/// <summary> /// Converts from. /// </summary> /// <param name="estateModel">The estate model.</param> /// <returns></returns> /// <exception cref="ArgumentNullException">estateModel</exception> public EstateViewModel ConvertFrom(EstateModel estateModel) { if (estateModel == null) { throw new ArgumentNullException(nameof(estateModel)); } EstateViewModel viewModel = new EstateViewModel { EstateName = estateModel.EstateName, EstateId = estateModel.EstateId }; return(viewModel); }
public EstatePage() { DataContext = new EstateViewModel(); InitializeComponent(); }
public async Task Put(EstateViewModel model) { await _service.Update(model); }
public async Task Post(EstateViewModel model) { await _service.Create(model); }