Ejemplo n.º 1
0
        public bool DeleteByUserID(Guid Userid)
        {
            bool blnResult = false;

            try
            {
                Entity = new Framework.Entity.UserAndPlantMappingSUB();
                Entity.AspNetUserID = Userid;
                Dictionary <string, bool> dctFields = new Dictionary <string, bool>();
                dctFields.Add("AspNetUserID", true);
                if (objDAL.DeleteByParameter(dctFields, Entity))
                {
                    blnResult = true;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(blnResult);
        }