/// <summary> /// Get the user inside the database using the id with param to search /// </summary> /// <param name="id">AuthorModels id to search</param> /// <returns> /// The found user data /// </returns> private AuthorModels GetAuthor(int id) { AuthorModels model; using (var repo = new AuthorRepository()) { model = repo.Details(id); } return(model); }