// POST api/dashboards
        public HttpResponseMessage Post(Dashboard dashboard)
        {
            UnitOfWork.Dashboards.Add(dashboard);
            UnitOfWork.Commit();

            var response = Request.CreateResponse(HttpStatusCode.Created, dashboard);

            // Compose location header that tells how to get this dashboard
            // e.g. ~/api/dashboard/5
            response.Headers.Location =
                new Uri(Url.Link(WebApiConfig.DefaultRouteName, new { id = dashboard.Id }));

            return response;
        }
 // PUT api/dashboards/5
 public HttpResponseMessage Put(Dashboard dashboard)
 {
     UnitOfWork.Dashboards.Update(dashboard);
     UnitOfWork.Commit();
     return new HttpResponseMessage(HttpStatusCode.NoContent);
 }