Ejemplo n.º 1
0
        public async Task <IActionResult> PutProjectItem(Guid id, ProjectItem projectItem)
        {
            if (id != projectItem.Id)
            {
                return(BadRequest());
            }

            _context.Entry(projectItem).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(NoContent());
        }
        public async Task <IActionResult> PutTenant(Guid id, Tenant tenant)
        {
            if (id != tenant.Id)
            {
                return(BadRequest());
            }

            _context.Entry(tenant).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(NoContent());
        }