Exemplo n.º 1
0
 public bool Delete(EntityHandler.Roles obj)
 {
     bool Status = false;
     try
     {
         Status = new DataAccessHandler.Roles().Delete(obj);
     }
     catch (Exception ex)
     { }
     return Status;
 }
Exemplo n.º 2
0
        public bool Delete(EntityHandler.Roles obj)
        {
            bool Status = false;

            try
            {
                Status = new DataAccessHandler.Roles().Delete(obj);
            }
            catch (Exception ex)
            { }
            return(Status);
        }
Exemplo n.º 3
0
 public List<EntityHandler.Roles> SelectAll(EntityHandler.Roles obj)
 {
     List<EntityHandler.Roles> listobj = new List<EntityHandler.Roles>();
     try
     {
         DataTable dt = new DataAccessHandler.Roles().SelectAll(obj);
         for (int i = 0; i < dt.Rows.Count; i++)
         {
             listobj.Add(ConvertToObject(dt.Rows[i]));
         }
     }
     catch (Exception ex)
     { }
     return listobj;
 }
Exemplo n.º 4
0
        public List <EntityHandler.Roles> SelectAll(EntityHandler.Roles obj)
        {
            List <EntityHandler.Roles> listobj = new List <EntityHandler.Roles>();

            try
            {
                DataTable dt = new DataAccessHandler.Roles().SelectAll(obj);
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    listobj.Add(ConvertToObject(dt.Rows[i]));
                }
            }
            catch (Exception ex)
            { }
            return(listobj);
        }