Skip to content

Instantly share code, notes, and snippets.

@Pownraj-2818
Created August 19, 2022 07:32
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/a06a6e387d292b95b5f086d24865fcf1 to your computer and use it in GitHub Desktop.
Save Pownraj-2818/a06a6e387d292b95b5f086d24865fcf1 to your computer and use it in GitHub Desktop.
public async Task Create(SubTeamRequestModel model)
{
SubTeam newSubTeam = _mapper.Map<SubTeam>(model);
_context.SubTeams.Add(newSubTeam);
await _context.SaveChangesAsync();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment