public IActionResult InviteUserWithEmail([FromBody] InviteDto invite) { Guid g; g = Guid.NewGuid(); pm.InvitationForProject(invite.Id, g.ToString()); es.SendEmail(invite.Email, "WorkFlow invite", g.ToString()); return(Ok(invite)); }