Ejemplo n.º 1
0
        public int CreateSitter(Sitter_x sitter)
        {
            string UID = CheckJWT(WebOperationContext.Current);

            if (sitter.UID != UID)
            {
                throw new Exception("UidProvideUserDontMachWithAuthUid");
            }

            return(repository.CreateSitter(sitter));
        }