Exemplo n.º 1
0
        public async Task <IActionResult> Insert(ActivityResource resource)
        {
            var activity = resource.GetModelFromResource();

            _context.Add(activity);
            await _context.SaveChangesAsync();

            return(Ok(ActivityResource.GetActivityResource(activity)));
        }