Exemple #1
0
        public IActionResult AddContractFiscality(int id)
        {
            var contract = _contract.GetById(id);
            var model    = new AddContractFiscalityModel
            {
                ContractId  = id,
                Fiscalitate = "",
                DataInceput = DateTime.Now,
                DataSfarsit = DateTime.Now.AddYears(1),
                Contract    = contract
            };

            return(View(model));
        }
Exemple #2
0
        public IActionResult EditContractFiscality(int id)
        {
            var contractFiscality = _fiscality.GetById(id);

            System.Diagnostics.Debug.WriteLine(id);
            var model = new AddContractFiscalityModel
            {
                ContractFiscalityId = contractFiscality.Id,
                Fiscalitate         = contractFiscality.Fiscalitate,
                SeAcordaDeduceri    = contractFiscality.SeAcordaDeduceri,
                DataInceput         = contractFiscality.DataInceput,
                DataSfarsit         = contractFiscality.DataSfarsit,
                Contract            = contractFiscality.Contract
            };

            return(View("EditContractFiscality", model));
        }