public long SaveOrUpdateCMRMasterDetails(CMRMaster cmr) { try { mbc.SaveOrUpdateCMRMasterDetails(cmr); return(cmr.Id); } catch (Exception ex) { throw ex; } finally { } }
public long GetDeleteCMRMasterById(CMRMaster cmr) { try { if (cmr.Id > 0) { mbc.GetDeleteCMRrowById(cmr); return(cmr.Id); } return(0); } catch (Exception ex) { throw ex; } finally { } }
public long GetDeleteCMRrowById(CMRMaster cmr) { try { if (cmr != null) { PSF.Delete <CMRMaster>(cmr); } else { throw new Exception("Value is required and it cannot be null.."); } return(0); } catch (Exception) { throw; } }
public long SaveOrUpdateCMRMasterDetails(CMRMaster cmr) { try { if (cmr != null) { PSF.SaveOrUpdate <CMRMaster>(cmr); } else { throw new Exception("All Fields are required and it cannot be null.."); } return(cmr.Id); } catch (Exception) { throw; } }
public CMRMaster GetCMRDetailsById(long Id) { try { CMRMaster CMRDetails = null; if (Id > 0) { CMRDetails = PSF.Get <CMRMaster>(Id); } else { throw new Exception("Id is required and it cannot be 0"); } return(CMRDetails); } catch (Exception) { throw; } }