Exemplo n.º 1
0
        public Guid InsertUpdateRecord(Country objCountry)
        {
            Guid objReturn = new Guid();

            try
            {
                using (Country_DAL objDAL = new Country_DAL())
                {
                    objReturn = objDAL.InsertUpdateRecord(objCountry);
                }
            }
            catch (Exception ex)
            {
                log.Error("InsertUpdateRecord Error: ", ex);
            }
            return(objReturn);
        }
Exemplo n.º 2
0
        public Country Validate(string email, string password)
        {
            Country objReturn = null;

            try
            {
                using (Country_DAL objDAL = new Country_DAL())
                {
                    objReturn = objDAL.Validate(email, password);
                }
            }
            catch (Exception ex)
            {
                log.Error("Validate Error: ", ex);
            }
            return(objReturn);
        }
Exemplo n.º 3
0
        public Country GetRecordById(Guid iId)
        {
            Country objReturn = null;

            try
            {
                using (Country_DAL objDAL = new Country_DAL())
                {
                    objReturn = objDAL.GetRecordById(iId);
                }
            }
            catch (Exception ex)
            {
                log.Error("GetRecordById Error: ", ex);
            }
            return(objReturn);
        }
Exemplo n.º 4
0
        public CountryPage GetRecordPage(int iPageNo, int iPageSize)
        {
            CountryPage objReturn = new CountryPage();

            try
            {
                using (Country_DAL objDAL = new Country_DAL())
                {
                    objReturn = objDAL.GetRecordPage(iPageNo, iPageSize);
                }
            }
            catch (Exception ex)
            {
                log.Error("GetRecordPage Error: ", ex);
            }
            return(objReturn);
        }
Exemplo n.º 5
0
        public List <Country> GetAllRecord()
        {
            List <Country> objReturn = null;

            try
            {
                using (Country_DAL objDAL = new Country_DAL())
                {
                    objReturn = objDAL.GetAllRecord();
                }
            }
            catch (Exception ex)
            {
                log.Error("GetAllRecord Error: ", ex);
            }
            return(objReturn);
        }
Exemplo n.º 6
0
        public bool DeleteRecord(int iId)
        {
            bool objReturn = false;

            try
            {
                using (Country_DAL objDAL = new Country_DAL())
                {
                    objReturn = objDAL.DeleteRecord(iId);
                }
            }
            catch (Exception ex)
            {
                log.Error("DeleteRecord Error: ", ex);
            }
            return(objReturn);
        }