}//GetConsumerID public static IEnumerable<DAL.ConsumerList> ConsumerRecordList(String Field, String Value) { try { ISearchResult objtext = new BALConsumerRegister(); IEnumerable<DAL.ConsumerList> listRecord = (IEnumerable<DAL.ConsumerList>)objtext.SearchResultList(Field, Value); return listRecord; } catch (Exception ex) { throw; } }//ConsumerRecordList
}//UpdateProperty public static IEnumerable<DAL.ConsumerList> ConsumerRecordList() { try { Icontext objtext = new BALConsumerRegister(); IEnumerable<DAL.ConsumerList> listRecord = (IEnumerable<DAL.ConsumerList>)objtext.RecordList(); return listRecord; } catch (Exception ex) { throw; } }//ConsumerRecordList
}//SearchField public static DAL. ConsumerList ViewConsumer(String ConsumerID) { try { Icontext objinter = new BALConsumerRegister(); ConsumerList Consumer = (ConsumerList)objinter.ViewRecord(Convert.ToInt64(ConsumerID)); return Consumer; } catch (Exception ex) { throw; } }// ViewConsumer
}//CreateConsumer public static ConsumerMaster EditConsumer(String ConsumerID) { try { Icontext objinter = new BALConsumerRegister(); ConsumerMaster prop = (ConsumerMaster)objinter.EditRecord(Convert.ToInt64(ConsumerID)); return prop; } catch (Exception ex) { throw; } }//EditConsumer
}//EditConsumer public static bool UpdateConsumer(ConsumerMaster consumer) { Boolean flag = false; try { Icontext objinter = new BALConsumerRegister(); flag = objinter.UpdateRecord(consumer); } catch (Exception ex) { throw; } return flag; }//UpdateProperty
}//CreateConsumerRegistration public static Boolean CreateConsumer(ConsumerMaster Consumer) { Boolean flag = false; try { Icontext objtext = new BALConsumerRegister(); flag = objtext.CreateRecord(Consumer); } catch (Exception ex) { throw; } return flag; }//CreateConsumer
}//CreateConsumer public static DAL.ConsumerList ConsumerBySearchParmaterInfo(String ConsumerID) { try { IRecord1View objinter = new BALConsumerRegister(); ConsumerList Consumer = (ConsumerList)objinter.RecordView(ConsumerID); return Consumer; } catch (Exception ex) { throw; } }// ConsumerBySearchParmaterInfo
}//UpdateConsumerField public static String AddConsumer(ConsumerMaster Consumer) { String ConsumerID = String.Empty; try { IRecordSave objtext = new BALConsumerRegister(); ConsumerID = objtext.AddRecord(Consumer); } catch (Exception ex) { throw; } return ConsumerID; }//CreateConsumer
public static DAL.ConsumerList ViewConsumer(String ConsumerID) { try { IGetRecordView objinter = new BALConsumerRegister(); ConsumerList Consumer = (ConsumerList)objinter.GetRecord(ConsumerID); return Consumer; } catch (Exception ex) { throw; } }
}// ConsumerBySearchParmaterInfo public static bool UpdateConsumerInfromation(ConsumerMaster consumer) { Boolean flag = false; try { IModifyRecord objinter = new BALConsumerRegister(); flag = objinter.UpdateRecord(consumer); } catch (Exception ex) { throw; } return flag; }//UpdateConsumerField