Example #1
0
        // api/activity/{id}/update
        public IActionResult UpdateEvent(Activity activity)
        {
            if (activity == null)
            {
                return(NotFound("The activity you are trying to update could not be found. Sorry..."));
            }
            ;
            _repo.Update(activity);

            return(Ok(activity));
        }