public bool UpdateCabProperty(CabProperty property) { bool isFlag = false; try { using (PropertyManagementDLL propertyManagementDLL = new PropertyManagementDLL()) { isFlag = propertyManagementDLL.UpdateCabProperty(property); } return isFlag; } catch { throw; } }
public Int32 InsertCabProperty(CabProperty property) { int isFlag = 0; try { using (PropertyManagementDLL propertyManagementDLL = new PropertyManagementDLL()) { isFlag = propertyManagementDLL.InsertCabProperty(property); } return isFlag; } catch { throw; } }
public static Int32 AddNewCabProperty(CabProperty CabProperty) { int isFlag = 0; Common objCommon = new Common(); PropertyManagementBLL objCabPropertyManagementBLL = null; try { objCabPropertyManagementBLL = new PropertyManagementBLL(); CabProperty.CreatedBy = objCommon.GetCurrentUserName(); isFlag = objCabPropertyManagementBLL.InsertCabProperty(CabProperty); } catch (Exception ex) { // Log the error to a text file in the Error folder Common.WriteError(ex); } finally { objCabPropertyManagementBLL = null; } return isFlag; }
public static bool UpdateCabProperty(CabProperty CabProperty) { bool isFlag = false; PropertyManagementBLL objCabPropertyManagementBLL = null; try { Common objCommon = new Common(); objCabPropertyManagementBLL = new PropertyManagementBLL(); CabProperty.ModifiedBy = objCommon.GetCurrentUserName(); isFlag = objCabPropertyManagementBLL.UpdateCabProperty(CabProperty); } catch (Exception ex) { // Log the error to a text file in the Error folder Common.WriteError(ex); } finally { objCabPropertyManagementBLL = null; } return isFlag; }