public bool EndpointRemove(EndpointInfo endp)
 {
     try
     {
         iotSharedEntityContext <EndpointInfo> propCont = new iotSharedEntityContext <EndpointInfo>();
         propCont.Delete(endp);
         return(true);
     }
     catch (Exception e)
     {
         nlogger.ErrorException(e.Message, e);
         return(false);
     }
 }
 public bool DeviceTypeRemove(DeviceType type)
 {
     try
     {
         iotSharedEntityContext <DeviceType> propCont = new iotSharedEntityContext <DeviceType>();
         propCont.Delete(type);
         return(true);
     }
     catch (Exception e)
     {
         nlogger.ErrorException(e.Message, e);
         return(false);
     }
 }
 public bool DeviceCredentialsRemove(DeviceCredentials creds)
 {
     try
     {
         iotSharedEntityContext <DeviceCredentials> propCont = new iotSharedEntityContext <DeviceCredentials>();
         propCont.Delete(creds);
         return(true);
     }
     catch (Exception e)
     {
         nlogger.ErrorException(e.Message, e);
         return(false);
     }
 }
 public bool ReqParamRemove(ActionParameter actparam)
 {
     try
     {
         iotSharedEntityContext <ActionParameter> propCont = new iotSharedEntityContext <ActionParameter>();
         propCont.Delete(actparam);
         return(true);
     }
     catch (Exception e)
     {
         nlogger.ErrorException(e.Message, e);
         return(false);
     }
 }
 public bool LocationRemove(Location location)
 {
     try
     {
         iotSharedEntityContext <Location> propCont = new iotSharedEntityContext <Location>();
         propCont.Delete(location);
         return(true);
     }
     catch (Exception e)
     {
         nlogger.ErrorException(e.Message, e);
         return(false);
     }
 }
 public bool PropertyRemove(DeviceProperty property)
 {
     try
     {
         iotSharedEntityContext <DeviceProperty> propCont = new iotSharedEntityContext <DeviceProperty>();
         propCont.Delete(property);
         return(true);
     }
     catch (Exception e)
     {
         nlogger.ErrorException(e.Message, e);
         return(false);
     }
 }
 public bool SiteRemove(Site Site)
 {
     try
     {
         iotSharedEntityContext <Site> propCont = new iotSharedEntityContext <Site>();
         propCont.Delete(Site);
         return(true);
     }
     catch (Exception e)
     {
         nlogger.ErrorException(e.Message, e);
         return(false);
     }
 }
        /*********************** Delete ***********************/


        public bool DomainRemove(iotDomain domain)
        {
            try
            {
                iotSharedEntityContext <iotDomain> propCont = new iotSharedEntityContext <iotDomain>();
                propCont.Delete(domain);
                return(true);
            }
            catch (Exception e)
            {
                nlogger.ErrorException(e.Message, e);
                return(false);
            }
        }