Example #1
0
        //public List<SP_GetAllRecieptsDetails_Result> GetAllReciepts()
        //{
        //    return Context1.SP_GetAllRecieptsDetails().ToList();
        //}

        //public List<SP_GetAllPaymentsDetails_Result> GetAllPayments()
        //{
        //    return Context1.SP_GetAllPaymentsDetails().ToList();
        //}

        public string GetMaxRecieptDocumentNo()
        {
            string Docno = "";

            var quary = Context1.SP_GetMaxRVID();

            foreach (var item in quary)
            {
                Docno = item.ToString();
            }

            return(Docno);
        }