public static PropertyTypeList ViewPropertyType(String TypeID)
 {
     try
     {
         Icontext objinter = new BALPropertyType();
         PropertyTypeList Type = (PropertyTypeList)objinter.ViewRecord(Convert.ToInt64(TypeID));
         return Type;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
 public static bool UpdatePropertyType(PropertyTypeMaster Type)
 {
     Boolean flag = false;
     try
     {
         Icontext objinter = new BALPropertyType();
         flag = objinter.UpdateRecord(Type);
     }
     catch (Exception ex)
     {
         throw;
     }
     return flag;
 }
 public static IEnumerable<DAL.PropertyTypeList> PropertyTypeList()
 {
     try
     {
         Icontext objtext = new BALPropertyType();
         IEnumerable<DAL.PropertyTypeList> listRecord = (IEnumerable<DAL.PropertyTypeList>)objtext.RecordList();
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
 public static IEnumerable<DAL.PropertyTypeList> PropertyTypeList(String Field, String Value)
 {
     try
     {
         ISearchResult objtext = new BALPropertyType();
         IEnumerable<DAL.PropertyTypeList> listRecord = (IEnumerable<DAL.PropertyTypeList>)objtext.SearchResultList(Field, Value);
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
 public static PropertyTypeMaster EditPropertyType(String TypeID)
 {
     try
     {
         Icontext objinter = new BALPropertyType();
         PropertyTypeMaster Type = (PropertyTypeMaster)objinter.EditRecord(Convert.ToInt64(TypeID));
         return Type;
     }
     catch (Exception ex)
     {
         throw;
     }
 }