public Spot UpdateSpot(Spot spot)
 {
     try
     {
         spot.LastUpdatedBy = Security.GetCurrentUserId;
         spot.LastUpdatedOn = DateTime.Now;
         spot.Update();
         return spot;
     }
     catch (Exception ex)
     {
         WebCommon.LogExceptionInfo(ex);
         throw new Exception("An error occurred while trying to update the spot.");
     }
 }
 public Spot UpdateMultipleSpots(Spot currentSpot, List<int> spotIdsToUpdate)
 {
     try
     {
         currentSpot.LastUpdatedBy = Security.GetCurrentUserId;
         currentSpot.LastUpdatedOn = DateTime.Now;
         foreach (int spotId in spotIdsToUpdate)
         {
             currentSpot.SpotId = spotId;
             currentSpot.Update();
         }
         return currentSpot;
     }
     catch (Exception ex)
     {
         WebCommon.LogExceptionInfo(new Exception(string.Format("Could not Update the following list of IDs: {0}", String.Join(",", Array.ConvertAll<int, string>(spotIdsToUpdate.ToArray(), new Converter<int, string>(Convert.ToString))), ex)));
         throw new Exception("An error occurred while trying to delete the spot(s).");
     }
 }