Esempio n. 1
0
        public ActionResult ContractDeclarantSave(Guid guid, OBKDeclarantViewModel declarantViewModel)
        {
            bool exist;
            Guid?declarantId = null;
            var  declarant   = obkRepo.ContractDeclarantSave(guid, declarantViewModel, out exist);

            if (declarant != null)
            {
                declarantId = declarant.Id;
            }
            object returnValue = new { Exist = exist, DeclarantId = declarantId, IsResident = declarantViewModel.IsResident };

            return(Json(returnValue));
        }