Exemple #1
0
        public Boolean addFav(int employeeNumber, int documentId)
        {
            geekinsidekmsEntities context = new geekinsidekmsEntities();

            DAL.Favorite fav = new DAL.Favorite();
            fav.EmployeeNumber = employeeNumber;
            fav.DocumentId = documentId;
            context.AddToFavorites(fav);
            context.SaveChanges();
            return true;
        }