public ActionResult DeleteResource(long sourceId) { ViewBag.ResourceType = dataHelper.GetResourceTypeList().Select(x => new SelectListItem { Text = x.Name, Value = x.Id.ToString() }).ToList(); var resources = dataHelper.DeleteSource(sourceId, User.Identity.Name); return(PartialView("_Resources", resources)); }