Ejemplo n.º 1
0
        public void Update(Guid id, ProjectInformation projectInformation)
        {
            var entityInContext = _context.ProjectsInformation.FirstOrDefault(c => c.ProjectId == id);

            if (entityInContext == null)
            {
                return;
            }

            _context.Entry(entityInContext).CurrentValues.SetValues(projectInformation);
            _context.Entry(entityInContext).State = EntityState.Modified;
        }
Ejemplo n.º 2
0
        public void Update(Guid id, CapitalPlan capitalPlan)
        {
            var entityInContext = _context.CapitalPlans.FirstOrDefault(c => c.ProjectId == id);

            if (entityInContext == null)
            {
                return;
            }

            _context.Entry(entityInContext).CurrentValues.SetValues(capitalPlan);
            _context.Entry(entityInContext).State = EntityState.Modified;
        }
        public void UpdateJobDefinitionDetail(Guid jobDefinitionId, CoupaImporterJobDefinitionDetail coupaImporterJobDefinitionDetail)
        {
            var entityInContext = _context.CoupaImporterJobDefinitionDetails.First(c => c.Id == jobDefinitionId);

            if (entityInContext == null)
            {
                return;
            }

            _context.Entry(entityInContext).CurrentValues.SetValues(coupaImporterJobDefinitionDetail);
            _context.Entry(entityInContext).State = EntityState.Modified;
        }