Beispiel #1
0
        public bool GetById()
        {
            bool res = false;

            res = RegistrationDAL.GetById(this);
            return(res);
        }
Beispiel #2
0
        //public DataTable GetAllActive()
        //{
        //    try
        //    {
        //        DataTable dtList = GetAll();
        //        var rows = dtList.AsEnumerable().Where(x => ((bool)x["IsActive"]) == true);
        //        DataTable dt = rows.Any() ? rows.CopyToDataTable() : dtList.Clone();

        //        if (dt != null)
        //            if (dt.Rows.Count > 0)
        //                return dt;
        //            else
        //                return null;
        //        else
        //            return null;
        //    }
        //    catch (Exception)
        //    {

        //        throw;
        //    }
        //}

        public DataTable GetById(int id)
        {
            try
            {
                RegistrationDAL registrationDAL = new RegistrationDAL();
                return(registrationDAL.GetById(id));
            }
            catch (Exception)
            {
                throw;
            }
        }