public ActionResult <IEnumerable <Recipe> > GetList() { var result = RecipeService.GetList(); if (result != null) { foreach (var recipe in result) { recipe.RecipeAuthor.PasswordHash = null; recipe.RecipeAuthor.PasswordSalt = null; } return(Ok(result)); } else { return(BadRequest()); } }