public ObjectResult <spView_Rpt_AMCGetAll_Result> GetAMC() { try { ((IObjectContextAdapter)this.context).ObjectContext.CommandTimeout = 3000; var mydata = context.spView_Rpt_AMCGetAll(mMonth, mYear, mproductCategory, mDeliveryZoneCode, mcdc, mIP, mSCTO, mfc, mStartDate, mEndDate); return(mydata); } catch (Exception x) { throw (x); } }