public long GetDeleteContingentrowById(ContingentMaster cntm) { try { return(mbc.GetDeleteContingentrowById(cntm)); } catch (Exception ex) { throw ex; } finally { } }
public long SaveOrUpdateContingentMasterDetails(ContingentMaster cntm) { try { mbc.SaveOrUpdateContingentDetails(cntm); return(cntm.Id); } catch (Exception ex) { throw ex; } finally { } }
public long GetDeleteContingentrowById(ContingentMaster cntm) { try { if (cntm != null) { PSF.Delete <ContingentMaster>(cntm); } else { throw new Exception("Value is required and it cannot be null.."); } return(0); } catch (Exception) { throw; } }
public long SaveOrUpdateContingentDetails(ContingentMaster cntm) { try { if (cntm != null) { PSF.SaveOrUpdate <ContingentMaster>(cntm); } else { throw new Exception("All Fields are required and it cannot be null.."); } return(cntm.Id); } catch (Exception) { throw; } }
public ContingentMaster GetContingentDetailsById(long Id) { try { ContingentMaster cntm = null; if (Id > 0) { cntm = PSF.Get <ContingentMaster>(Id); } else { throw new Exception("Id is required and it cannot be 0"); } return(cntm); } catch (Exception) { throw; } }