示例#1
0
        public string BindingComment(int id)
        {
            Context.SalesOrder items = RepoSalesOrder.FindByPickup(id);

            return(new JavaScriptSerializer().Serialize(new
            {
                data = items.SalesOrderPickup.SalesOrderPickupComment.ToList().Select(d => new
                {
                    Id = d.Id,
                    Tanggal = d.Tanggal,
                    CommentUser = d.CommentUser,
                    Username = d.Username,
                    Action = d.Action
                })
            }));
        }