Relative Content

Tag Archive for c#asp.net.netasp.net-mvcasp.net-web-api

No webpage was found for the web address: https://localhost:7002/Villa/UpdateVilla?villaId=1006

public async Task<IActionResult> UpdateVilla(int villaId) { var response = await _villaService.Get<APIResponse>(villaId); if (response != null && response.IsSuccess) { VillaDTO model = JsonConvert.DeserializeObject<VillaDTO>(Convert.ToString(response.Result)); return View(_mapper.Map<VillaUpdateDTO>(model)); } return NotFound(); } this code is for updating the details of Villa. i’ve added a breakpoint at this method and found out when i click on update button, it get […]