Example #1
0
        public IHttpActionResult Post(Activity activity)
        {
            Activity Created = AL.Create(activity);

            List <Goal>       goals = gLogic.UpdateCurrentGoals(Created.Id);
            List <Attainment> att   = attLogic.GetNewAttainments(Created.Id);

            // Have to break up the tuple because the serializer on the server
            // differs from the deserializer on the phone.
            return(Ok(new { Item1 = Created, Item2 = goals, Item3 = att }));
        }