//public HttpResponseMessage Options() //{ // var response = new HttpResponseMessage(); // response.StatusCode = HttpStatusCode.OK; // response.Headers.Add("Access-Control-Allow-Origin", "*"); // response.Headers.Add("Access-Control-Request-Headers", "*"); // response.Headers.Add("Access-Control-Allow-Methods", "GET,POST,PUT,DELETE,OPTIONS"); // return response; //} private byte[] GetDefaultProfileImage() { if (_defaultProfileImage == null) { _defaultProfileImage = EmbeddedResources.GetApiRequestFile(typeof(AvatarsController), "Resgrid.Web.Services.Properties.Resources.defaultProfile.png"); } return(_defaultProfileImage); }