void DeleteFIle(ImagensImovel file)
        {
            _imovelBLL.DeleteFile(file);
            var filePath = Directory.GetCurrentDirectory();

            filePath += "\\" + file.path;
            if (System.IO.File.Exists(filePath))
            {
                System.IO.File.Delete(filePath);
            }
        }
 public bool DeleteFile([FromBody] ImagensImovel file)
 {
     _imovelBLL = new ImovelBLL();
     try
     {
         DeleteFIle(file);
         _imovelBLL.DeleteFile(file);
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }