﻿using System;
using System.Linq;

static class UrlHelper
{
    public static string GetCompany(string url)
    {
        var uri = new Uri(url);
        return uri.PathAndQuery.Substring(1).Split('/').First();
    }

    public static string GetProject(string url)
    {
        var uri = new Uri(url);
        return uri.PathAndQuery.Split('/').Last();
    }
}