Beispiel #1
0
        public FileResult Logo(Models.Group.GroupRequestModel param)
        {
            try
            {
                GroupBL bl = new GroupBL();

                byte[] logo = bl.GetGroupLogo(param);

                return(this.CreateImageFileResult(logo));
            }
            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);
                }
            }
        }