public ActionResult DestroyApplication([DataSourceRequest] DataSourceRequest request, TmcInView model)
        {
            if (model != null)
            {
                TmcRepository tRepo = new TmcRepository(false);
                tRepo.RemoveTmcByPoaId(model.Id);
                tRepo.Save();

                ApplicationPoaRepository repo = new ApplicationPoaRepository(false);
                TmcIn d = repo.GetAsQuarable(o => o.Id == model.Id).FirstOrDefault();
                repo.Delete(d);
                repo.Save();
            }
            return(Json(new[] { model }.ToDataSourceResult(request, ModelState)));
        }