public ActionResult Assign(int id)
 {
     try
     {
         using (var repository = new FranchiseRepository())
         {
             ViewBag.Model = JsonConvert.SerializeObject(new
             {
                 Franchise            = repository.GetFranchiseMapInfoById(id),
                 LstStoresByFranchise = repository.GetListStoresByFranchiseId(id),
             });
         }
     }
     catch (Exception ex)
     {
         SharedLogger.LogError(ex);
         ViewBag.FranchiseName = "No encontrada";
     }
     return(View());
 }