public async Task <IActionResult> Insert(ActivityResource resource) { var activity = resource.GetModelFromResource(); _context.Add(activity); await _context.SaveChangesAsync(); return(Ok(ActivityResource.GetActivityResource(activity))); }
public async Task <IActionResult> Insert(ActivityResource resource) { var activity = resource.GetModelFromResource(); _context.Add(activity); await _context.SaveChangesAsync(); return(Ok(ActivityResource.GetActivityResource(activity))); }