Beispiel #1
0
        public async Task <IActionResult> Put(int id, ResponsibleArea model)
        {
            model.Id = id;
            await _genericRepository.UpdateAsync(model);

            return(NoContent());
        }
Beispiel #2
0
        public async Task <ActionResult <ResponsibleArea> > Post(ResponsibleArea model)
        {
            var entity = await _genericRepository.CreateAsync(model);

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