Пример #1
0
 public bool Delete(EntityHandler.User obj)
 {
     bool Status = false;
     try
     {
         Status = new DataAccessHandler.User().Delete(obj);
     }
     catch (Exception ex)
     { }
     return Status;
 }
Пример #2
0
        public bool Delete(EntityHandler.User obj)
        {
            bool Status = false;

            try
            {
                Status = new DataAccessHandler.User().Delete(obj);
            }
            catch (Exception ex)
            { }
            return(Status);
        }
Пример #3
0
 public List<EntityHandler.User> SelectAll(EntityHandler.User obj)
 {
     List<EntityHandler.User> listobj = new List<EntityHandler.User>();
     try
     {
         DataTable dt = new DataAccessHandler.User().SelectAll(obj);
         for (int i = 0; i < dt.Rows.Count; i++)
         {
             listobj.Add(ConvertToObject(dt.Rows[i]));
         }
     }
     catch (Exception ex)
     { }
     return listobj;
 }
Пример #4
0
        public List <EntityHandler.User> SelectAll(EntityHandler.User obj)
        {
            List <EntityHandler.User> listobj = new List <EntityHandler.User>();

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