public ActionResult Week(string date, string type, string pctype) { etblPropertyWeekendBiddingMapForOverview obj = new etblPropertyWeekendBiddingMapForOverview(); obj = BL_tblPropertyWeekendBiddingMap.GetSingleRecordById(clsUtils.ConvertyyyymmddtoDateTime(date), Convert.ToInt32(Session["PropId"]), Convert.ToInt32(type), pctype); if (obj.Self.bWeekend != null) { obj.Self.EffectiveDate = String.Format("{0:dd/MM/yyyy}", obj.Self.dtEffectiveDate); } else { obj.Self.dtEffectiveDate = clsUtils.ConvertyyyymmddtoDateTime(date); obj.Self.EffectiveDate = String.Format("{0:dd/MM/yyyy}", obj.Self.dtEffectiveDate); } return(PartialView("_PropertyWeekendBiddingMap", obj)); }