コード例 #1
0
        public async Task <IActionResult> Put(int id, DirectoryCondominium model)
        {
            model.Id = id;
            await _genericRepository.UpdateAsync(model);

            return(NoContent());
        }
コード例 #2
0
        public async Task <ActionResult <DirectoryCondominium> > Post(DirectoryCondominium model)
        {
            var entity = await _genericRepository.CreateAsync(model);

            return(new CreatedAtRouteResult("GetDirectoryCondominium", new { id = entity.Id }, entity));
        }