/// <summary> /// This method is used to check duplicate calender and period values. /// </summary> /// <param name="objCodeProp"></param> /// <returns></returns> /// <createdOn>May-24-2016</createdon> public bool CheckDuplicateCalenderAndPeriod(int year, int period) { BillingDAL objBillingDAL = new BillingDAL(); try { CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); return(objBillingDAL.CheckDuplicateCalenderAndPeriod(year, period)); } catch (Exception) { throw; } finally { CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "End {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); } }