Skip to content

Instantly share code, notes, and snippets.

@Pownraj-2818
Created August 19, 2022 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pownraj-2818/1e9cc6ee20f2ae5d2787a073fcb3497d to your computer and use it in GitHub Desktop.
Save Pownraj-2818/1e9cc6ee20f2ae5d2787a073fcb3497d to your computer and use it in GitHub Desktop.
public async Task Create(TeamRequestModel model)
{
Team newTeam = _mapper.Map<Team>(model);
_context.Teams.Add(newTeam);
await _context.SaveChangesAsync();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment