private IRep repository = Rep.GetInstance();//MockRep.GetInstance(); public int CreateUser(User_x user) { string UID = CheckJWT(WebOperationContext.Current); if (user.UID != UID) { throw new Exception("UidProvideUserDontMachWithAuthUid"); } return(repository.CreateUser(user)); }