public async Task <IActionResult> Edit(int id) { var editPub = await _pub.GetById(id); if (editPub == null) { return(RedirectToAction("Index")); } return(View(editPub)); }
public async Task <IActionResult> GetById(int id) { var user = await _publisher.GetById(id); return(Ok(user)); }
public async Task <IActionResult> GetById(int id) { var pub = await _pub.GetById(id); return(Ok(pub)); }