public async Task <string> Complete([GraphQLSession] AuthSession session, [Service] IProjectCommandService service, string id) { await service.Complete(session.CompanyId, id); return(Ok()); }
public async Task <string> AddUser([GraphQLSession] AuthSession session, [Service] IProjectCommandService service, string projectId, string model) { return(Ok(await service.AddUser(session.CompanyId, projectId, model))); }
public async Task <string> Update([GraphQLSession] AuthSession session, [Service] IProjectCommandService service, UpdateProjectVm model) { await service.Update(session.CompanyId, model); return(Ok()); }
public async Task <string> Add([GraphQLSession] AuthSession session, [Service] IProjectCommandService service, CreateProjectVm model) { return(Ok(await service.Create(session.CompanyId, model))); }