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()); }
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()); }