public IActionResult Details(int id) { var machinecafe = repo.GetById(id); if (machinecafe == null) { return(NotFound()); } else { return(View(machinecafe)); } }
public IActionResult GetById(int id) { return(Ok(_machine.GetById(id))); }
public IActionResult Details(int id) { var machinecafe = repo.GetById(id); if (machinecafe == null) { return(NotFound()); } else { return(View(machinecafe)); } }
public IActionResult GetById(int id) { return(Ok(_machine.GetById(id))); }