예제 #1
0
        public ActionResult RecalculateStats(int groupID)
        {
            var grp = RepoFactory.AnimeGroup.GetByID(groupID);

            if (grp == null)
            {
                return(BadRequest("No Group with ID"));
            }
            AnimeGroupCreator groupCreator = new AnimeGroupCreator();

            groupCreator.RecalculateStatsContractsForGroup(grp);
            return(Ok());
        }
예제 #2
0
        public ActionResult RecalculateStats(int groupID)
        {
            var group = RepoFactory.AnimeGroup.GetByID(groupID);

            if (group == null)
            {
                return(NotFound(GroupNotFound));
            }

            AnimeGroupCreator groupCreator = new AnimeGroupCreator();

            groupCreator.RecalculateStatsContractsForGroup(group);
            return(Ok());
        }