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); }
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); }
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); }
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); }
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); }
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); }