Exemplo n.º 1
0
        public Models.Goal CreateGoal(Models.Goal g, String uid)
        {
            var createdGoal = _acc.CreateGoal(g);
            var ug          = new UserGoal
            {
                GoalID       = createdGoal.ID,
                DateAssigned = DateTime.Now,
                UserID       = uid,
            };

            _ugAcc.CreateUserGoal(ug);
            return(createdGoal);
        }
Exemplo n.º 2
0
 public Models.UserGoal CreateUserGoal(Models.UserGoal ub)
 {
     return(_acc.CreateUserGoal(ub));
 }