/// <summary> /// Get Countrys /// </summary> /// <returns></returns> // GET: api/Country public IHttpActionResult Get() { FranchiseRepository FranchiseRepository = new FranchiseRepository(Convert.ToInt32(Request.Headers.GetValues("CurrentUserID").First())); List <Franchise> FranchiseList = FranchiseRepository.GetFranchises(); return(Json(new { Franchises = FranchiseList })); }