public FileResult Photo(Models.Member.PhotoRequestModel param) { try { MemberBL bl = new MemberBL(); byte[] photo = bl.GetMemberPhoto(param); return(this.CreateImageFileResult(photo)); } catch (OrgException oex) { throw new HttpException((int)System.Net.HttpStatusCode.NotFound, oex.Message); } catch (Exception ex) { if (AppConfigs.DebugInternalMessage) { throw new HttpException((int)System.Net.HttpStatusCode.InternalServerError, ex.Message); } else { throw new HttpException((int)System.Net.HttpStatusCode.NotFound, AppConfigs.InternalErrorMessage); } } }