public long GetDeletePeriodMasterById(PeriodMaster itm) { try { return(mbc.GetDeletePeriodMasterById(itm)); } catch (Exception ex) { throw ex; } finally { } }
public long SaveOrUpdatePeriodMasterDetails(PeriodMaster itm) { try { mbc.SaveOrUpdatePeriodMasterDetails(itm); return(itm.Id); } catch (Exception ex) { throw ex; } finally { } }
public long SaveOrUpdatePeriodMasterDetails(PeriodMaster im) { try { if (im != null) { PSF.SaveOrUpdate <PeriodMaster>(im); } else { throw new Exception("All Fields are required and it cannot be null.."); } return(im.Id); } catch (Exception ex) { throw ex; } }
public long GetDeletePeriodMasterById(PeriodMaster im) { try { if (im != null) { PSF.Delete <PeriodMaster>(im); } else { throw new Exception("Value is required and it cannot be null.."); } return(0); } catch (Exception ex) { throw ex; } }
public PeriodMaster GetPeriodDetailsById(long Id) { try { PeriodMaster cntm = null; if (Id > 0) { cntm = PSF.Get <PeriodMaster>(Id); } else { throw new Exception("Id is required and it cannot be 0"); } return(cntm); } catch (Exception ex) { throw ex; } }
public int AddPeriod(PeriodMaster _master, string Otype) { DALCommon dal = new DALCommon(ConStr); return(dal.AddPeriod(_master, Otype)); }