Пример #1
0
        public ActionResult GetOBK_OP_Commission(Guid id)
        {
            var model  = expRepo.GetOBK_OP_Commission(id);
            var result = model.Select(x =>
            {
                var employee = x.Employee;
                return(new
                {
                    Organization = employee.Organization.Name,
                    Unit = employee.Units.FirstOrDefault(),
                    Position = employee.Position.Name,
                    FIO = employee.FullName
                });
            });

            return(Json(new { isSuccess = true, result }));
        }