public ActionResult Edit(int id) { var customerDTO = _customerQueryService.GetCustomerById(id); var customer = Convert(customerDTO); return(View(customer)); }
public async Task <IActionResult> GetCustomerById(Guid customerId) { var customerRp = await _CustomerQueryService.GetCustomerById(customerId); if (DomainManager.HasNotFounds()) { return(this.NotFound(DomainManager.GetNotFounds())); } return(this.Ok(customerRp)); }