public AgencyProfileContentView() { InitializeComponent(); ViewModel = new AgencyProfileViewModel(); this.BindingContext = ViewModel; }
public IActionResult Details(string id) { var agency = profileService.GetAgencyById(id); var agencyDetails = new AgencyProfileViewModel { Id = agency.Id, Name = agency.Name, Description = agency.Description, Address = agency.Address, PhoneNumber = agency.PhoneNumber, Rating = agency.Rating, }; return(this.View(agencyDetails)); }