Exemple #1
0
        public bool Delete(int id, string userName)
        {
            try
            {
                var entity = RestfulVendor.Read(id);

                if (!VendorAccessControl.Pass(RestfulAction.Delete, entity, userName))
                {
                    throw new NoAccessException("No Access");
                }

                return(RestfulVendor.Delete(id));
            }
            catch
            {
                throw;
            }
        }