コード例 #1
0
        public string AddEvent()
        {
            SQLProvider   provider = new SQLProvider();
            Task <Stream> task     = Request.Content.ReadAsStreamAsync();

            task.Wait();
            Stream          EntityStream = task.Result;
            BinaryFormatter bf           = new BinaryFormatter();
            Notifications   events       = (Notifications)bf.Deserialize(EntityStream);

            return(provider.AddNotification(events.ListOfEvents[0]));
        }