public IActionResult Details(int?id) { if (id == null) { return(NotFound()); } var bwtVM = designerService.GetById(id.Value); if (bwtVM == null) { return(NotFound()); } return(View(bwtVM)); }
public IActionResult Get(int id) { var customerViewModel = designerService.GetById(id); return(Response(customerViewModel)); }