Skip to content

Instantly share code, notes, and snippets.

@Pownraj-2818
Created August 19, 2022 07:32
Show Gist options
  • 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