Exemplo n.º 1
0
        public async Task UpdateCategoryAsync(int id, LinkCategoryIM item)
        {
            var origin = await _db.LinkCategories.FindAsync(id);

            var category = _mapper.Map(item, origin);

            category.UpdatedDate = DateTime.Now;
            category.UpdatedBy   = await _sessionStorageService.GetItemAsync <string>("username");

            _db.Update(category);
            await _db.SaveChangesAsync();
        }
Exemplo n.º 2
0
        public async Task UpdateAsync(int id, PaymentlogIM item)
        {
            var origin = await _db.Paymentlogs.FindAsync(id);

            var pl = _mapper.Map(item, origin);

            _db.Update(pl);
            await _db.SaveChangesAsync();
        }
Exemplo n.º 3
0
        public async Task UpdateAsync(int id, ProjectBusinessIM item)
        {
            var origin = await _db.ProjectBusinesses.FindAsync(id);

            var project = _mapper.Map(item, origin);

            _db.Update(project);
            await _db.SaveChangesAsync();
        }
Exemplo n.º 4
0
        public async Task UpdateAsync(int id, ProjectIM item)
        {
            var origin = await _db.Projects.FindAsync(id);

            var project = _mapper.Map(item, origin);

            //customer.CreatedDate = DateTime.Now;
            //customer.CreatedBy = await _sessionStorageService.GetItemAsync<string>("username");

            _db.Update(project);
            await _db.SaveChangesAsync();
        }