Esempio n. 1
0
        // POST api/<controller>
        public void Post(VolunteerActivity activity)
        {
            var currentUser = repo.GetUserByUserName(User.Identity.Name);

            activity.VolunteerUser = currentUser;
            repo.AddActivity(activity);
        }