public Entity.GalleryItem CalculateOriginalFileSize(Entity.GalleryItem galleryItem) { try { AlbumController.CalculateOriginalFileSize(galleryItem); return(galleryItem); } catch (Exception ex) { AppEventController.LogError(ex); throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError) { Content = Utils.GetExStringContent(ex), ReasonPhrase = "Server Error" }); } }