private static IEnumerable<MarkRequestViewModel> GetRequestsForUser(User user) { foreach (MarkRequest request in user.MarkRequests) { yield return new MarkRequestViewModel { Author = request.User.FirstName, Date = request.Date, Employee = request.Mark.To.FirstName }; } }
partial void DeleteUser(User instance);
partial void UpdateUser(User instance);
partial void InsertUser(User instance);