public int UpdateSitter(Sitter_x sitter) { string UID = CheckJWT(WebOperationContext.Current); if (sitter.UID != UID) { throw new Exception("UidProvideUserDontMachWithAuthUid"); } return(repository.UpdateSitter(sitter)); }