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); }
public Models.UserGoal CreateUserGoal(Models.UserGoal ub) { return(_acc.CreateUserGoal(ub)); }