public async Task <IActionResult> EditTreat(int id)
        {
            var treat = await _treatService.Get(id) ?? new Treat()
            {
                UserId = id
            };

            return(PartialView("_EditTreatPartial", treat));
        }
Esempio n. 2
0
 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));
        }