public async Task <IActionResult> EditTreat(int id) { var treat = await _treatService.Get(id) ?? new Treat() { UserId = id }; return(PartialView("_EditTreatPartial", treat)); }
public ActionResult <List <Treat> > Get() => _treatService.Get();
public async Task <WebAPIOutput <Treat> > Get(int id) { var treat = await _treatService.Get(id); return(WebAPIOutput <Treat> .Success(treat)); }