示例#1
0
        public ActionResult GetMotivationRefuse(Guid declarationId)
        {
            var refuse = expRepo.GetMotivationRefuse(declarationId);

            if (refuse != null)
            {
                return(Json(new
                {
                    success = true,
                    MotivationRefuse = new
                    {
                        motivationRefuseRu = refuse.ExpReasonNameRu,
                        motivationRefuseKz = refuse.ExpReasonNameKz,
                        reasonId = refuse.RefReasonId
                    }
                }));
            }
            else
            {
                return(Json(new { success = false }));
            }
        }