public JsonResult GetModel(long id = 0)
        {
            Core.DemdInfo   model   = new Core.DemdInfo();
            DemdInfoService ObjServ = new DemdInfoService();
            var             result  = ObjServ.Reposity.Get(id);

            if (result != null)
            {
                model = result;
            }
            var entity = Mapper.Map <Dto.DemdInfoDto>(model);

            ObjServ.Dispose();
            return(Json(entity));
        }
        public JsonResult InsertOrUpdate(Core.DemdInfo input)
        {
            ResultDto <long> result = new ResultDto <long>();

            try
            {
                DemdInfoService ObjServ = new DemdInfoService();
                input.TenantId      = tenant.Id;
                input.CreatorUserId = MemberId;
                input.CreationTime  = DateTime.Now;
                ObjServ.Reposity.InsertOrUpdate(input);
                ObjServ.Dispose();
                result.code    = 100;
                result.message = "ok";
                result.datas   = input.Id;
            }
            catch (Exception ex)
            {
                result.code    = 500;
                result.message = ex.Message;
            }
            return(Json(result));
        }