public IActionResult Index() { var storeowner = _versionsServices.GetById(1); if (storeowner == null) { return(NotFound()); } var model = new VersionEditViewModel() { id = storeowner.id, storeVersion = storeowner.storeVersion, customerVersion = storeowner.customerVersion, deliveryboyVersion = storeowner.deliveryboyVersion }; return(View(model)); }
public async Task <IActionResult> getversion() { var customer = _versionsServices.GetById(1); if (customer == null) { return(NotFound()); } else { return(Ok(customer)); } //return BadRequest(); }