Exemplo n.º 1
0
        public ResponseAddLogo AddLogo(RequestAddLogo request)
        {
            var imagePath = SaveImageToWorksampleDirectory(request.FileName, request.FileData, CATALOG_DIRECTORY);

            var item = new LogoType()
            {
                Description = request.Description,
                ImageUrl    = imagePath,
                Name        = request.Name,
                Type        = request.TypeValue
            };

            dbManager.AddLogo(item);

            return(new ResponseAddLogo());
        }
Exemplo n.º 2
0
 public ResponseAddLogo AddLogo([FromBody] RequestAddLogo request)
 {
     return(ExecuteWrapper.Execute(() => { return aManager.AddLogo(request); }));
 }