// GET: Alterations public async Task <IActionResult> Index() { var result = await _service.ListAsync(); return(View(result)); }
public async Task <ActionResult <IEnumerable <AlterationViewModel> > > Get() { var alterationList = await _alterationService.ListAsync(); return(Ok(alterationList.ToViewModelList())); }