public static bool IsOwner(UserInformationModel<User> aUser, Petition aPetition) { IPetitionService myPetitionService = new PetitionService(new ModelStateWrapper(new ModelStateDictionary())); return myPetitionService.CanView(aUser, aPetition); }
public static bool IsOwner(UserInformationModel<User> aUser, Petition aPetition) { IPetitionService myPetitionService = new PetitionService(new ModelStateWrapper(new ModelStateDictionary())); return myPetitionService.CanView(aUser, aPetition); }