コード例 #1
0
        public override async Task UpdateAsync(MeetingNote entityToUpdate)
        {
            var existsEntity = await Dbset.FindAsync(entityToUpdate.Id);

            existsEntity.Note        = entityToUpdate.Note;
            existsEntity.UpdatedBy   = entityToUpdate.UpdatedBy;
            existsEntity.UpdatedDate = DateTime.Now;
        }
コード例 #2
0
        public override async Task UpdateAsync(MeetingTopic entityToUpdate)
        {
            var existsEntity = await Dbset.FindAsync(entityToUpdate.Id);

            existsEntity.Name        = entityToUpdate.Name;
            existsEntity.IsDraft     = entityToUpdate.IsDraft;
            existsEntity.UpdatedBy   = entityToUpdate.UpdatedBy;
            existsEntity.UpdatedDate = DateTime.Now;
        }
コード例 #3
0
        public override async Task UpdateAsync(MeetingAgendaUser entityToUpdate)
        {
            var existsEntity = await Dbset.FindAsync(entityToUpdate.Id);

// TODO: map here

            existsEntity.UpdatedBy   = entityToUpdate.UpdatedBy;
            existsEntity.UpdatedDate = DateTime.Now;
        }
コード例 #4
0
        public override async Task UpdateAsync(MeetingTime entityToUpdate)
        {
            var existsEntity = await Dbset.FindAsync(entityToUpdate.Id);

            existsEntity.Count       = entityToUpdate.Count;
            existsEntity.FiscalYear  = entityToUpdate.FiscalYear;
            existsEntity.MeetingDate = entityToUpdate.MeetingDate;
            existsEntity.Location    = entityToUpdate.Location;
            existsEntity.IsDraft     = entityToUpdate.IsDraft;
            existsEntity.UpdatedBy   = entityToUpdate.UpdatedBy;
            existsEntity.UpdatedDate = DateTime.Now;
        }
コード例 #5
0
        public override async Task UpdateAsync(User entityToUpdate)
        {
            var existsUser = await Dbset.FindAsync(entityToUpdate.Id);

            existsUser.FirstName   = entityToUpdate.FirstName;
            existsUser.LastName    = entityToUpdate.LastName;
            existsUser.Position    = entityToUpdate.Position;
            existsUser.Email       = entityToUpdate.Email;
            existsUser.PhoneNo     = entityToUpdate.PhoneNo;
            existsUser.Level       = entityToUpdate.Level;
            existsUser.IsActive    = entityToUpdate.IsActive;
            existsUser.UpdatedBy   = entityToUpdate.UpdatedBy;
            existsUser.UpdatedDate = DateTime.Now;
        }