Exemplo n.º 1
0
        // This call the accessor method that updates an activity in the database.
        public bool EditActivity(ActivityVM oldActivity, ActivityVM newActivity)
        {
            {
                bool result = false;
                try
                {
                    result = 1 == _activityAccessor.UpdateActivity(oldActivity, newActivity);
                }
                catch (Exception ex)
                {
                    throw new ApplicationException("Update failed", ex);
                }

                return(result);
            }
        }
Exemplo n.º 2
0
 public Models.Activity UpdateActivity(Models.Activity activity)
 {
     return(_acc.UpdateActivity(activity));
 }