Ejemplo n.º 1
0
        public static IList <StatusdetailInfo> GetCurrentStatus(long RequestId)
        {
            using (var context = new SalesReturndbEntities())
            {
                var fut = context.SP_GetCurrentStatusDetails(RequestId).ToList();

                IList <StatusdetailInfo> list = null;

                list = fut.Select(x => new StatusdetailInfo()
                {
                    RequestId      = Convert.ToInt32(x.RequestHeaderId),
                    Department     = x.Department,
                    Status         = x.Status,
                    Remark         = x.Remark,
                    Added_By       = x.CreatedBy,
                    Added_Date     = x.CreatedDate,
                    EMP_CODE       = x.EMP_CODE,
                    Emp_First_name = x.Emp_First_name
                }).ToList();

                return(list);
            }
        }