Пример #1
0
        public void Rate(int id)
        {
            rating Rating = new rating
            {
                rate        = Convert.ToInt32(Convert.ToDouble(Request.QueryString["rate"]) * 2),
                employee_id = id,
                created_at  = DateTime.Now
            };

            ES.Add(Rating);
            ES.Commit();
        }