public long SaveOrUpdateUNSectorMapppingMasterDetails(UNSectorConMapping unsm) { try { mbc.SaveOrUpdateUNSectorMapppingMasterDetails(unsm); return(unsm.Id); } catch (Exception ex) { throw ex; } finally { } }
public long GetDeleteUNSectorMapppingMasterById(UNSectorConMapping unsm) { try { if (unsm.Id > 0) { mbc.GetDeleteUNSectorMapppingrowById(unsm); return(unsm.Id); } return(0); } catch (Exception ex) { throw ex; } finally { } }
public long GetDeleteUNSectorMapppingrowById(UNSectorConMapping unsm) { try { if (unsm != null) { PSF.Delete <UNSectorConMapping>(unsm); } else { throw new Exception("Value is required and it cannot be null.."); } return(0); } catch (Exception) { throw; } }
public long SaveOrUpdateUNSectorMapppingMasterDetails(UNSectorConMapping unsm) { try { if (unsm != null) { PSF.SaveOrUpdate <UNSectorConMapping>(unsm); } else { throw new Exception("All Fields are required and it cannot be null.."); } return(unsm.Id); } catch (Exception) { throw; } }
public UNSectorConMapping GetUNSectorMapppingDetailsById(long Id) { try { UNSectorConMapping UNSectorMapppingDetails = null; if (Id > 0) { UNSectorMapppingDetails = PSF.Get <UNSectorConMapping>(Id); } else { throw new Exception("Id is required and it cannot be 0"); } return(UNSectorMapppingDetails); } catch (Exception) { throw; } }