public IHttpActionResult EditSite(Site site)
        {
            if (site == null)
            {
                return(BadRequest("The site object can't be found in the request body."));
            }

            try
            {
                site.CreatedDate = DateTime.Now;
                sitesService.UpdateSite(site);
                var sites = sitesService.GetSites();
                var html  = Helpers.RenderPartial("~/Views/Shared/Partial/Sites/SitesList.cshtml", sites);
                return(Ok(html));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }
 //Sites Management
 public ActionResult Sites()
 {
     ViewData["contractsManagement"] = "in";
     ViewData["sites"] = "active";
     return(View(sitesService.GetSites()));
 }