public async Task <IActionResult> Delete(string id) { var model = await _actorRepo.GetActor(id); if (model == null) { return(NotFound()); } await _actorRepo.Delete(model); return(Ok()); }
private async Task <List <Actor> > getActors(List <string> actors) { var models = new List <Actor>(); for (var x = 0; x < actors.Count; x++) { var item = await _actorRepo.GetActor(actors[x]); if (item != null) { models.Add(item); } } return(models); }